[gnome-session/wip/benzea/systemd-user-switch: 28/31] manager: Rely on systemd restarting DBus already
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-session/wip/benzea/systemd-user-switch: 28/31] manager: Rely on systemd restarting DBus already
- Date: Tue, 30 Jul 2019 08:27:22 +0000 (UTC)
commit 79088b0da54567554a8b9d80b556d753b244ff70
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]