summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--daemon/gdm-manager.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/daemon/gdm-manager.c b/daemon/gdm-manager.c
index 26981255..7602e751 100644
--- a/daemon/gdm-manager.c
+++ b/daemon/gdm-manager.c
@@ -1598,10 +1598,12 @@ on_start_user_session (StartUserSessionOperation *operation)
g_object_set_data (G_OBJECT (operation->session), "gdm-display", NULL);
create_embryonic_user_session_for_display (operation->manager, display, allowed_uid);
- /* remove the unused prepared greeter display since we're not going
- * to have a greeter */
- gdm_display_store_remove (self->priv->display_store, display);
- g_object_unref (display);
+ if (g_strcmp0 (operation->service_name, "gdm-autologin") == 0) {
+ /* remove the unused prepared greeter display since we're not going
+ * to have a greeter */
+ gdm_display_store_remove (self->priv->display_store, display);
+ g_object_unref (display);
+ }
/* Give the user session a new display object for bookkeeping purposes */
session_id = gdm_session_get_conversation_session_id (operation->session,