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



commit 44fa5ed5897c029e6c4d59d47fe4563e187120eb
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 18a6f3d1..e50ba33c 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]