mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-25 20:54:34 +00:00
Update condition for startx
This commit is contained in:
parent
6cd2d962ee
commit
e126ce3bae
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue