From 439073ef0fbb485ed095fe5c581d798e825b3f5b Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Thu, 1 Mar 2018 12:07:53 +0100 Subject: [PATCH] Modified rc.d/startx --- rc.d/startx | 1 + 1 file changed, 1 insertion(+) diff --git a/rc.d/startx b/rc.d/startx index 2b0b734..4c42870 100644 --- a/rc.d/startx +++ b/rc.d/startx @@ -3,6 +3,7 @@ if [[ -z "$DISPLAY" && $(id -u) -ge 1000 ]] ; then TTY=$(tty) + if [ "$TTY" == "not a tty" ]; then return; fi if [ "${TTY/tty}" != "$TTY" -a $(basename ${TTY/tty}) -le 3 ] then