diff --git a/src/archlabs-installer b/src/archlabs-installer index 38320d4..7bc352f 100755 --- a/src/archlabs-installer +++ b/src/archlabs-installer @@ -1861,9 +1861,8 @@ EOF # sourced by $(basename $MYSHELL) when used as a login shell # automatically run startx when logging in on tty1 -if [ -z "\$DISPLAY" ] && [ \$XDG_VTNR -eq 1 ]; then - exec startx -- vt1 >/dev/null 2>&1 -fi +[[ ! \$DISPLAY && \$XDG_VTNR -eq 1 ]] && exec startx -- vt1 + EOF else rm -rf $SERVICE