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