[gnome-session/wip/benzea/systemd-user-switch: 12/16] manager: Quit session manager after completing shutdown



commit cf86229d44e218a8c8481183d969843668ad6759
Author: Benjamin Berg <bberg redhat com>
Date:   Mon Apr 29 15:55:44 2019 +0200

    manager: Quit session manager after completing shutdown
    
    Without this gnome-session-binary will simply continue to live when the
    user requested a shutdown or reboot. In all cases (systemd, consolekit,
    otherwise) it makes sense to simply quit g-s-m after completing the
    shutdown.
    
    In fact, we could just quit immediately in all cases, as this will
    release the inhibitor FDs, but that wouldn't be quite as clean.

 gnome-session/gsm-manager.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gnome-session/gsm-manager.c b/gnome-session/gsm-manager.c
index 556bb7d3..18a6f3d1 100644
--- a/gnome-session/gsm-manager.c
+++ b/gnome-session/gsm-manager.c
@@ -492,10 +492,12 @@ gsm_manager_quit (GsmManager *manager)
         case GSM_MANAGER_LOGOUT_REBOOT:
         case GSM_MANAGER_LOGOUT_REBOOT_INTERACT:
                 gsm_system_complete_shutdown (manager->priv->system);
+                gsm_quit ();
                 break;
         case GSM_MANAGER_LOGOUT_SHUTDOWN:
         case GSM_MANAGER_LOGOUT_SHUTDOWN_INTERACT:
                 gsm_system_complete_shutdown (manager->priv->system);
+                gsm_quit ();
                 break;
         default:
                 g_assert_not_reached ();


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