[gdm/wip/timed-login-fix: 1/4] manager: don't kill timed login session immediately after it starts



commit 9c30c02774af883f289712c25aba5fb1f1d3d658
Author: Ray Strode <rstrode redhat com>
Date:   Wed Feb 6 16:14:52 2019 -0500

    manager: don't kill timed login session immediately after it starts
    
    At the moment GDM is misidentifying timed login sessions as if
    they are automatic login sessions.  That leads to their displays
    getting killed sometimes shortly after log in.
    
    This commit corrects the check, so that timed login sessions aren't
    treated as autologin sessions.

 daemon/gdm-manager.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/daemon/gdm-manager.c b/daemon/gdm-manager.c
index 2c3d76e2..fd1ce44c 100644
--- a/daemon/gdm-manager.c
+++ b/daemon/gdm-manager.c
@@ -1815,7 +1815,8 @@ on_start_user_session (StartUserSessionOperation *operation)
                                                  session_id);
 
 
-                if (g_strcmp0 (operation->service_name, "gdm-autologin") == 0) {
+                if (g_strcmp0 (operation->service_name, "gdm-autologin") == 0 &&
+                   !gdm_session_client_is_connected (operation->session)) {
                         /* remove the unused prepared greeter display since we're not going
                          * to have a greeter */
                         gdm_display_store_remove (self->priv->display_store, display);


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