diff options
author | Ray Strode <rstrode@redhat.com> | 2019-02-06 16:14:52 -0500 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2019-02-07 13:13:17 -0500 |
commit | 7726c81db92d2339fc468ed41c967f5412db66ed (patch) | |
tree | f826e8952b66bb94d8499430c64105a4f6359ecb | |
parent | 9b3f09c782cc0628cc20c96c4cf53a2c1f778a39 (diff) | |
download | gdm-7726c81db92d2339fc468ed41c967f5412db66ed.tar.gz |
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.
-rw-r--r-- | daemon/gdm-manager.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/daemon/gdm-manager.c b/daemon/gdm-manager.c index 4d2ad9de..dbf64473 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); |