From bb51ff77b1f0e6671caf0015f6c559e873e25cbd Mon Sep 17 00:00:00 2001 From: EliasSchriefer Date: Sun, 30 Aug 2020 16:33:29 +0200 Subject: [PATCH] Connect to system bus instead of session bus --- sfsmcd/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfsmcd/src/main.rs b/sfsmcd/src/main.rs index 542f702..5c3cbbb 100644 --- a/sfsmcd/src/main.rs +++ b/sfsmcd/src/main.rs @@ -25,7 +25,7 @@ async fn main() -> Result<(), Box> { cr.insert("/", &[], ()); // Connect with D-Bus - let (resource, c) = dbus_tokio::connection::new_session_sync()?; + let (resource, c) = dbus_tokio::connection::new_system_sync()?; debug!("D-Bus unique name: {}", c.unique_name()); // Spawn a new task for the D-Bus resource