summaryrefslogtreecommitdiff
path: root/daemon/gdm-session.c
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2016-02-09 11:49:02 -0500
committerRay Strode <rstrode@redhat.com>2016-02-09 11:51:26 -0500
commitc1211abe5e3c6b5429efec70ce31bbbdcb957560 (patch)
tree13e12d2bf368e24f23b4c25855dbdacb19a769a8 /daemon/gdm-session.c
parent298ab37fbb8f819477d783cab0d9ece05a115d34 (diff)
downloadgdm-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/gdm-session.c')
-rw-r--r--daemon/gdm-session.c4
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);