Blame SOURCES/0001-startx-Pass-keeptty-when-telling-the-server-to-start.patch

b9ec32
From c70ab1d87b4aec8f171615aa8dee4a1fc1104b4b Mon Sep 17 00:00:00 2001
b9ec32
From: Hans de Goede <hdegoede@redhat.com>
b9ec32
Date: Tue, 20 Jan 2015 16:18:34 +0100
b9ec32
Subject: [PATCH xinit] startx: Pass -keeptty when telling the server to start
b9ec32
 on the current tty
b9ec32
b9ec32
Detaching from the tty causes systemd-logind to refuse service to the xserver,
b9ec32
the xserver already tries to detect that it is being asked to run on the
b9ec32
current tty and then automatically enables -keeptty, but this code fails if
b9ec32
all of stdin, stdout and stderr are redirected to a file. So explicitly tell
b9ec32
the xserver to not detach when we're telling it to run on the current tty.
b9ec32
b9ec32
BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1177513
b9ec32
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
b9ec32
---
b9ec32
 startx.cpp | 2 +-
b9ec32
 1 file changed, 1 insertion(+), 1 deletion(-)
b9ec32
b9ec32
diff --git a/startx.cpp b/startx.cpp
b9ec32
index 1c6fce0..45d7bd9 100644
b9ec32
--- a/startx.cpp
b9ec32
+++ b/startx.cpp
b9ec32
@@ -195,7 +195,7 @@ if [ x"$server" = x ]; then
b9ec32
     tty=$(tty)
b9ec32
     if expr match "$tty" '^/dev/tty[0-9]\+$' > /dev/null; then
b9ec32
         tty_num=$(echo "$tty" | grep -oE '[0-9]+$')
b9ec32
-        vtarg="vt$tty_num"
b9ec32
+        vtarg="vt$tty_num -keeptty"
b9ec32
     fi
b9ec32
 #endif
b9ec32
 
b9ec32
-- 
b9ec32
2.1.0
b9ec32