summaryrefslogtreecommitdiffstats
path: root/source/x/x11/patch/xinit/xinit.remove.systemd.kludge.diff
diff options
context:
space:
mode:
Diffstat (limited to 'source/x/x11/patch/xinit/xinit.remove.systemd.kludge.diff')
-rw-r--r--source/x/x11/patch/xinit/xinit.remove.systemd.kludge.diff19
1 files changed, 19 insertions, 0 deletions
diff --git a/source/x/x11/patch/xinit/xinit.remove.systemd.kludge.diff b/source/x/x11/patch/xinit/xinit.remove.systemd.kludge.diff
new file mode 100644
index 000000000..f51e4628d
--- /dev/null
+++ b/source/x/x11/patch/xinit/xinit.remove.systemd.kludge.diff
@@ -0,0 +1,19 @@
+--- ./startx.cpp.orig 2014-09-11 12:31:42.000000000 -0500
++++ ./startx.cpp 2015-03-29 23:35:06.133875707 -0500
+@@ -192,10 +192,12 @@
+ XCOMM When starting the defaultserver start X on the current tty to avoid
+ XCOMM the startx session being seen as inactive:
+ XCOMM "https://bugzilla.redhat.com/show_bug.cgi?id=806491"
+- tty=$(tty)
+- if expr match "$tty" '^/dev/tty[0-9]\+$' > /dev/null; then
+- tty_num=$(echo "$tty" | grep -oE '[0-9]+$')
+- vtarg="vt$tty_num"
++ if [ -x /usr/lib/systemd/systemd -o -x /lib/systemd/systemd ]; then
++ tty=$(tty)
++ if expr match "$tty" '^/dev/tty[0-9]\+$' > /dev/null; then
++ tty_num=$(echo "$tty" | grep -oE '[0-9]+$')
++ vtarg="vt$tty_num"
++ fi
+ fi
+ #endif
+