diff options
author | Ray Strode <rstrode@redhat.com> | 2009-06-29 20:14:33 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2009-08-03 15:50:59 -0400 |
commit | 8ca8520f8b8e1031c3583400a17937f01249d11f (patch) | |
tree | 6efc73dd98e19d1858ae7744ae22f4c34df5b1b3 | |
parent | f6d4ac95ab088e42b705c1c6fa31fcb078835f8f (diff) | |
download | gdm-8ca8520f8b8e1031c3583400a17937f01249d11f.tar.gz |
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.
-rw-r--r-- | 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 7177977d..32e55b7c 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 */ |