From a211b960a7590910b46c1d59acaeda5e87b5b522 Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Sun, 16 Apr 2017 01:19:16 +0200 Subject: all: switch from session to system bus --- src/pgp/main.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pgp') diff --git a/src/pgp/main.vala b/src/pgp/main.vala index f95b6f7..c866c7b 100644 --- a/src/pgp/main.vala +++ b/src/pgp/main.vala @@ -22,7 +22,7 @@ Config cfg; public static int main(string[] args) { try { - cfg = Bus.get_proxy_sync(BusType.SESSION, "io.mainframe.shopsystem.Config", "/io/mainframe/shopsystem/config"); + cfg = Bus.get_proxy_sync(BusType.SYSTEM, "io.mainframe.shopsystem.Config", "/io/mainframe/shopsystem/config"); pgp = new PGPKeyArchive(cfg.get_string("PGP", "keyring")); } catch(IOError e) { error("IOError: %s\n", e.message); @@ -32,7 +32,7 @@ public static int main(string[] args) { Bus.own_name( - BusType.SESSION, + BusType.SYSTEM, "io.mainframe.shopsystem.PGP", BusNameOwnerFlags.NONE, on_bus_aquired, -- cgit v1.2.3