Ensure to have startx available before ask for a X session.

This commit is contained in:
Jeremy Gardais 2017-08-04 16:00:41 +02:00
parent e2061aa808
commit d2941008a3
1 changed files with 1 additions and 1 deletions

2
zlogin
View File

@ -62,7 +62,7 @@ getc ()
## Autorun an X session with some restrictions ## Autorun an X session with some restrictions
## Set a ~/.noxorg file to work in tty only ## Set a ~/.noxorg file to work in tty only
# If non-root session # If non-root session
if [ ${USER} != "root" ]; then if [ ${USER} != "root" ] && [ $(command -v startx) ]; then
# If it's a VC console and # If it's a VC console and
# no X session already launch and # no X session already launch and
# no ~/.noxorg file exist # no ~/.noxorg file exist