summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2015-03-19 20:55:40 -0400
committerRay Strode <rstrode@redhat.com>2015-03-19 22:29:38 -0400
commitc0c56178c941e144305af318e3f42637529ca862 (patch)
tree6308d2b1b66e924700416d9c34868dba2d66c9ec
parent63b0ce137248fb210b22227bb85956540e02bae3 (diff)
downloadgdm-c0c56178c941e144305af318e3f42637529ca862.tar.gz
session: always use REUSE_VT display mode for ConsoleKit
The ConsoleKit path needs to use GdmLegacyDisplay, which always reuses the greeter display. https://bugzilla.gnome.org/show_bug.cgi?id=746497
-rw-r--r--daemon/gdm-session.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c
index 52fbc172..33a08e3c 100644
--- a/daemon/gdm-session.c
+++ b/daemon/gdm-session.c
@@ -2945,6 +2945,10 @@ gdm_session_get_display_mode (GdmSession *self)
self->priv->is_program_session? "yes" : "no",
self->priv->display_seat_id);
+ if (!LOGIND_RUNNING()) {
+ return GDM_SESSION_DISPLAY_MODE_REUSE_VT;
+ }
+
#ifdef ENABLE_WAYLAND_SUPPORT
/* Wayland sessions are for now assumed to run in a
* mutter-launch-like environment, so we allocate