[gdm] gdm-session: update session type when the session defaults change



commit c1211abe5e3c6b5429efec70ce31bbbdcb957560
Author: Ray Strode <rstrode redhat com>
Date:   Tue Feb 9 11:49:02 2016 -0500

    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

 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 c230dae..b839fea 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]