From e126ce3bae607554530c53588025d264b5028ea0 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Wed, 14 Jul 2021 19:33:11 +0200 Subject: [PATCH] Update condition for startx --- home/.config/shell/profile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/home/.config/shell/profile b/home/.config/shell/profile index ad22ac6..37aa1b8 100755 --- a/home/.config/shell/profile +++ b/home/.config/shell/profile @@ -56,9 +56,7 @@ export PIPENV_VENV_IN_PROJECT=1 # Force pipenv to create new environments within #export QT_QPA_PLATFORMTHEME="gtk2" # Have QT use gtk2 theme. # Start graphical session, if startx is aviable -if [ "$(tty)" = "/dev/tty1" ]; then - if command -v startx > /dev/null; then - ! pidof -s Xorg > /dev/null 2>&1 && exec startx "$XINITRC" - fi +if [ "$(tty)" = "/dev/tty1" ] && [ -x "$(command -v startx)"]; then + ! pidof -s Xorg > /dev/null 2>&1 && exec startx "$XINITRC" fi