diff options
author | Sebastian Reichel <sre@ring0.de> | 2018-06-29 21:05:46 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2018-07-15 22:59:57 +0200 |
commit | cce1953eb1f8fe8c927a1720c95caed45b71ef1d (patch) | |
tree | 4ce0e1a234360ebb99f8bf6b6f2fa5d8ab842c55 /src/web | |
parent | 2d532b4a537327d66a15d20dc2e8aaad9b5f1dfc (diff) | |
download | serial-barcode-scanner-cce1953eb1f8fe8c927a1720c95caed45b71ef1d.tar.bz2 |
all: simplify datadir configuration
This simplifies the datadir configuration and removes the expectation,
that the code is executed from the repository. It should now be possible
to install this into the system like any other common Linux application.
Diffstat (limited to 'src/web')
-rw-r--r-- | src/web/main.vala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/web/main.vala b/src/web/main.vala index f7b0c30..2043df0 100644 --- a/src/web/main.vala +++ b/src/web/main.vala @@ -34,7 +34,8 @@ public static int main(string[] args) { pgp = Bus.get_proxy_sync(BusType.SYSTEM, "io.mainframe.shopsystem.PGP", "/io/mainframe/shopsystem/pgp"); cfg = Bus.get_proxy_sync(BusType.SYSTEM, "io.mainframe.shopsystem.Config", "/io/mainframe/shopsystem/config"); audio = Bus.get_proxy_sync(BusType.SYSTEM, "io.mainframe.shopsystem.AudioPlayer", "/io/mainframe/shopsystem/audio"); - templatedir = cfg.get_string("WEB", "filepath"); + var datapath = cfg.get_string("GENERAL", "datapath"); + templatedir = Path.build_filename(datapath, "templates"); port = cfg.get_integer("WEB", "port"); try { |