diff options
author | Ray Strode <rstrode@redhat.com> | 2016-02-09 11:49:02 -0500 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2016-02-09 11:51:26 -0500 |
commit | c1211abe5e3c6b5429efec70ce31bbbdcb957560 (patch) | |
tree | 13e12d2bf368e24f23b4c25855dbdacb19a769a8 /daemon | |
parent | 298ab37fbb8f819477d783cab0d9ece05a115d34 (diff) | |
download | gdm-c1211abe5e3c6b5429efec70ce31bbbdcb957560.tar.gz |
gdm-session: update session type when the session defaults change
If a user has never logged in before and they login using autologin,
then we don't select the correct session type if they end up
with a wayland session. This is because we fail to initialize
the session type based on the default session type.
This commit changes the code to update the session type anytime the
session defaults are reset.
https://bugzilla.gnome.org/show_bug.cgi?id=761785
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/gdm-session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c index c230dae5..b839fea4 100644 --- a/daemon/gdm-session.c +++ b/daemon/gdm-session.c @@ -608,6 +608,8 @@ static void gdm_session_defaults_changed (GdmSession *self) { + update_session_type (self); + if (self->priv->greeter_interface != NULL) { gdm_dbus_greeter_emit_default_language_name_changed (self->priv->greeter_interface, get_default_language_name (self)); @@ -920,8 +922,6 @@ worker_on_saved_session_name_read (GdmDBusWorker *worker, return; } - update_session_type (self); - if (strcmp (session_name, get_default_session_name (self)) != 0) { g_free (self->priv->saved_session); |