[gdm] manager: don't muck with the session type and class of stub display (autologin)



commit fa9e98c6c7046b527b0bd36ec7672a0a4ddbf23b
Author: Ray Strode <rstrode redhat com>
Date:   Thu Sep 10 09:41:18 2015 -0400

    manager: don't muck with the session type and class of stub display (autologin)
    
    Normally at startup a display is created of class "greeter" for the
    login screen to use.  That display isn't used in the case automatic
    login is enabled.  There's some iffy code to try to change the class
    from "greeter" to "user" in the automatic login case.  That code is
    wrong, because in the automatic login case a new display is created
    specifically for the user session.  The greeter session is abandoned,
    instead of used, so mucking with it's class and type is wrong.
    
    This commit removes the code that does that mucking.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=749418

 daemon/gdm-manager.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/daemon/gdm-manager.c b/daemon/gdm-manager.c
index a148f3d..a2a60f2 100644
--- a/daemon/gdm-manager.c
+++ b/daemon/gdm-manager.c
@@ -1329,9 +1329,6 @@ set_up_automatic_login_session (GdmManager *manager,
         GdmSession *session;
         gboolean is_initial;
 
-        g_object_set (G_OBJECT (display), "session-class", "user", NULL);
-        g_object_set (G_OBJECT (display), "session-type", NULL, NULL);
-
         /* 0 is root user; since the daemon talks to the session object
          * directly, itself, for automatic login
          */


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