summaryrefslogtreecommitdiffstats
path: root/src/web/main.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/main.vala')
-rw-r--r--src/web/main.vala6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/web/main.vala b/src/web/main.vala
index 07dbb03..b5fdde3 100644
--- a/src/web/main.vala
+++ b/src/web/main.vala
@@ -16,13 +16,19 @@
Database db;
public CSVMemberFile csvimport;
public PGP pgp;
+public Config cfg;
+string templatedir;
public static int main(string[] args) {
try {
db = Bus.get_proxy_sync(BusType.SESSION, "io.mainframe.shopsystem.Database", "/io/mainframe/shopsystem/database");
pgp = Bus.get_proxy_sync(BusType.SESSION, "io.mainframe.shopsystem.PGP", "/io/mainframe/shopsystem/pgp");
+ cfg = Bus.get_proxy_sync(BusType.SESSION, "io.mainframe.shopsystem.Config", "/io/mainframe/shopsystem/config");
+ templatedir = cfg.get_string("WEB", "filepath");
} catch(IOError e) {
error("IOError: %s\n", e.message);
+ } catch(KeyFileError e) {
+ error("KeyFileError: %s\n", e.message);
}
/* attach WebServer to MainLoop */