diff options
author | Ray Strode <rstrode@redhat.com> | 2019-02-06 16:14:52 -0500 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2019-02-06 16:17:23 -0500 |
commit | 9c30c02774af883f289712c25aba5fb1f1d3d658 (patch) | |
tree | 7028ab00c2f70dd4e6daeb2ad614a4ff05f3ecc0 | |
parent | 564e26c03a2617bc66dcf23232cbaa98d41d808c (diff) | |
download | gdm-9c30c02774af883f289712c25aba5fb1f1d3d658.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 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); |