diff options
author | Ray Strode <rstrode@redhat.com> | 2021-09-29 11:03:41 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2021-09-29 11:10:28 -0400 |
commit | ae75f642859dcfdcfcaaffc617ebe7a68cf0bed7 (patch) | |
tree | 12dd8b33cb5f174f8e1d115042b2c7bdbb7e5b53 /daemon/gdm-session.c | |
parent | 6e0a6b8415641040fa2e5f2affca2fe7a5533736 (diff) | |
download | gdm-infer-session-type-when-needed.tar.gz |
daemon: Infer session type from desktop file if user has no saved session typeinfer-session-type-when-needed
The accountsservice user cache file can specify a session type
associated with the saved session. This is optional though. If one
isn't specified GDM needs to figure out the session type based on the
list of preferred session types for the system and the session file
itself.
It was failing to do the latter, though. This commit fixes that.
Diffstat (limited to 'daemon/gdm-session.c')
-rw-r--r-- | daemon/gdm-session.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c index c1e2be00..4b709731 100644 --- a/daemon/gdm-session.c +++ b/daemon/gdm-session.c @@ -1036,6 +1036,8 @@ worker_on_saved_session_name_read (GdmDBusWorker *worker, } if (self->saved_session_type != NULL) set_session_type (self, self->saved_session_type); + else + update_session_type (self); } } |