From 9dce0dfa4cd90e7ce2131e1e5821f54eb3754b26 Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Mon, 24 Aug 2015 14:18:19 +0200 Subject: input-device: add new daemon The input-device daemon can be used instead of the serial-device daemon for barcode scanners, that are connected as HID device. --- src/serial-device/main.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/serial-device/main.vala') diff --git a/src/serial-device/main.vala b/src/serial-device/main.vala index e338842..ae1aa75 100644 --- a/src/serial-device/main.vala +++ b/src/serial-device/main.vala @@ -18,7 +18,7 @@ Device dev; public static int main(string[] args) { try { Config cfg = Bus.get_proxy_sync(BusType.SESSION, "io.mainframe.shopsystem.Config", "/io/mainframe/shopsystem/config"); - dev = new Device(cfg.get_string("SERIAL", "device"), 9600, 8, 1); + dev = new Device(cfg.get_string("INPUT", "device"), 9600, 8, 1); } catch(IOError e) { error("IOError: %s\n", e.message); } catch(KeyFileError e) { @@ -27,7 +27,7 @@ public static int main(string[] args) { Bus.own_name( BusType.SESSION, - "io.mainframe.shopsystem.SerialDevice", + "io.mainframe.shopsystem.InputDevice", BusNameOwnerFlags.NONE, on_bus_aquired, () => {}, -- cgit v1.2.3