[gdm/display-configuration: 14/20] Strip out $vt from X server command line args



commit 8ca8520f8b8e1031c3583400a17937f01249d11f
Author: Ray Strode <rstrode redhat com>
Date:   Mon Jun 29 20:14:33 2009 -0400

    Strip out $vt from X server command line args
    
    If the VT wasn't substituted by the time it got to us,
    then that means we need to figure one out.  The easiest
    way to do that is to just not pass a VT argument and let
    the X server figure it out.

 daemon/gdm-local-display-factory.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gdm-local-display-factory.c b/daemon/gdm-local-display-factory.c
index 7177977..32e55b7 100644
--- a/daemon/gdm-local-display-factory.c
+++ b/daemon/gdm-local-display-factory.c
@@ -583,6 +583,11 @@ seat_session_to_add (DBusGProxy             *seat_proxy,
                 strrep (comm, &comm, "-auth $auth", "");
         }
 
+        if (strstr (comm, "$vt")) {
+                use_auth = TRUE;
+                strrep (comm, &comm, "$vt", "");
+        }
+
         if (display == NULL) {
                 if (is_chooser) {
                         /* TODO: Start a xdmcp chooser as request */



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