diff options
author | Johannes Rudolph <johannes.rudolph@gmx.com> | 2018-01-02 13:58:11 +0100 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2018-06-28 01:52:53 +0200 |
commit | 207e77c7cbab87f3bf537dd11ca391f12df01129 (patch) | |
tree | c8ad4ae435dca1b2e77d0ddfab72c5a57dd3290b /src/curses-ui/main.vala | |
parent | f07b648ce9b6f06200bdd0090d1fdac15fd3351d (diff) | |
download | serial-barcode-scanner-207e77c7cbab87f3bf537dd11ca391f12df01129.tar.bz2 |
all: replace hard-coded KtT branding with dynamic text
* extend config file with general details
* extend curves-ui makefile add config
* Use name from config
* replace static text with dynamic text
* read short name and long name from config
* replace SHORTNAME tags with the shortname
* replace mail related branding information
* add missing Replacement
* make VAT (Umsatzsteuer) optional
* make space name dynamic
* make short name in treasuremail text dynamic
* make pdf text more dynamic
Diffstat (limited to 'src/curses-ui/main.vala')
-rw-r--r-- | src/curses-ui/main.vala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/curses-ui/main.vala b/src/curses-ui/main.vala index 7020586..47be40a 100644 --- a/src/curses-ui/main.vala +++ b/src/curses-ui/main.vala @@ -62,6 +62,15 @@ public static int main(string[] args) { scanner.msg.connect(msg_handler); scanner.msg_overlay.connect(msg_overlay_handler); + /* get configuration */ + Config config = Bus.get_proxy_sync(BusType.SYSTEM, "io.mainframe.shopsystem.Config", "/io/mainframe/shopsystem/config"); + var shopname = "--SHOPNAME--"; + try { + shopname = config.get_string("GENERAL", "longname"); + } catch(KeyFileError e) { + shopname = "Missing in Config"; + } + ui.log(MessageType.INFO, "KtT Shop System has been started"); play("startup.ogg"); |