diff --git a/sh/.config/sh/profile.d/autostartx.sh b/sh/.config/sh/profile.d/autostartx.sh index 5da5059..08bce98 100644 --- a/sh/.config/sh/profile.d/autostartx.sh +++ b/sh/.config/sh/profile.d/autostartx.sh @@ -1,5 +1,5 @@ #!/usr/bin/env sh -if [ ! "$DISPLAY" ] && [ "$XDG_VTNR" -eq 1 ]; then +if [ ! "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then exec startx "$XDG_CONFIG_HOME"/xresources/xinitrc fi