diff options
author | Sebastian Reichel <sre@ring0.de> | 2013-04-29 00:07:16 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2013-04-29 00:07:43 +0200 |
commit | f5f02c1615a30d88fbd0d77709ee9c924c048849 (patch) | |
tree | f0ceba6f13f6a545b868b5b08830cb4490f96df8 /src/web/main.vala | |
parent | 21273de2382f07ca2c799fb800de189608bb5529 (diff) | |
download | serial-barcode-scanner-f5f02c1615a30d88fbd0d77709ee9c924c048849.tar.bz2 |
add template dir to config
Diffstat (limited to 'src/web/main.vala')
-rw-r--r-- | src/web/main.vala | 6 |
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 */ |