1
0
Fork 0
mirror of git://slackware.nl/current.git synced 2025-01-18 22:27:20 +01:00
slackware-current/source/x/x11/patch/xinit/xinit.remove.systemd.kludge.diff

20 lines
771 B
Diff
Raw Normal View History

--- ./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