mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-11-10 10:39:41 +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.
|
#export QT_QPA_PLATFORMTHEME="gtk2" # Have QT use gtk2 theme.
|
||||||
|
|
||||||
# Start graphical session, if startx is aviable
|
# Start graphical session, if startx is aviable
|
||||||
if [ "$(tty)" = "/dev/tty1" ]; then
|
if [ "$(tty)" = "/dev/tty1" ] && [ -x "$(command -v startx)"]; then
|
||||||
if command -v startx > /dev/null; then
|
|
||||||
! pidof -s Xorg > /dev/null 2>&1 && exec startx "$XINITRC"
|
! pidof -s Xorg > /dev/null 2>&1 && exec startx "$XINITRC"
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue