[gdm] session: always use REUSE_VT display mode for ConsoleKit



commit c0c56178c941e144305af318e3f42637529ca862
Author: Ray Strode <rstrode redhat com>
Date:   Thu Mar 19 20:55:40 2015 -0400

    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

 daemon/gdm-session.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c
index 52fbc17..33a08e3 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


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