[gnome-session/wip/benzea/systemd-user-switch: 16/19] manager: Rely on systemd restarting DBus already



commit dc141b5c7ba92e5ca4620c888b4fa1666f78d2cf
Author: Benjamin Berg <bberg redhat com>
Date:   Mon May 13 12:46:37 2019 +0200

    manager: Rely on systemd restarting DBus already
    
    If the session is managed using systemd, then the shutdown target will
    trigger a restart of DBus. So only restart DBus when the session is not
    managed using systemd.

 gnome-session/gsm-manager.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gnome-session/gsm-manager.c b/gnome-session/gsm-manager.c
index 12d277e9..d56b7c02 100644
--- a/gnome-session/gsm-manager.c
+++ b/gnome-session/gsm-manager.c
@@ -1001,7 +1001,8 @@ do_phase_exit (GsmManager *manager)
         }
 
 #ifdef HAVE_SYSTEMD
-        maybe_restart_user_bus (manager);
+        if (!manager->priv->systemd_managed)
+                maybe_restart_user_bus (manager);
 #endif
 
         end_phase (manager);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]