summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2017-04-16 01:19:16 +0200
committerSebastian Reichel <sre@ring0.de>2017-04-18 22:08:34 +0200
commita211b960a7590910b46c1d59acaeda5e87b5b522 (patch)
treeda94483c1d1719d71777477452d34092df91e215 /src/audio
parent2bee9e0eb0f46d41a381e3fc32ff98a192f9493a (diff)
downloadserial-barcode-scanner-a211b960a7590910b46c1d59acaeda5e87b5b522.tar.bz2
all: switch from session to system bus
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/main.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio/main.vala b/src/audio/main.vala
index ac80c75..ac64f52 100644
--- a/src/audio/main.vala
+++ b/src/audio/main.vala
@@ -19,7 +19,7 @@ public static int main(string[] args) {
Gst.init(ref args);
Bus.own_name(
- BusType.SESSION,
+ BusType.SYSTEM,
"io.mainframe.shopsystem.AudioPlayer",
BusNameOwnerFlags.NONE,
on_bus_aquired,
@@ -27,7 +27,7 @@ public static int main(string[] args) {
() => stderr.printf("Could not aquire name\n"));
try {
- Config cfg = Bus.get_proxy_sync(BusType.SESSION, "io.mainframe.shopsystem.Config", "/io/mainframe/shopsystem/config");
+ Config cfg = Bus.get_proxy_sync(BusType.SYSTEM, "io.mainframe.shopsystem.Config", "/io/mainframe/shopsystem/config");
var path = cfg.get_string("AUDIO", "path");
player = new AudioPlayerImplementation(path);
} catch(IOError e) {