From 154e6ba591b26756638e8cba1bc4130dbdb09d80 Mon Sep 17 00:00:00 2001 From: natemaia Date: Fri, 11 Jan 2019 10:09:15 -0800 Subject: [PATCH] Fix up .*profile creation --- src/archlabs-installer | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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