diff --git a/zlogin b/zlogin index b012b72..3a9dd10 100644 --- a/zlogin +++ b/zlogin @@ -62,7 +62,7 @@ getc () ## Autorun an X session with some restrictions ## Set a ~/.noxorg file to work in tty only # If non-root session -if [ ${USER} != "root" ]; then +if [ ${USER} != "root" ] && [ $(command -v startx) ]; then # If it's a VC console and # no X session already launch and # no ~/.noxorg file exist