From d2941008a32c90b2a6aa02c15606fa63f444073c Mon Sep 17 00:00:00 2001 From: Gardouille Date: Fri, 4 Aug 2017 16:00:41 +0200 Subject: [PATCH] Ensure to have startx available before ask for a X session. --- zlogin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zlogin b/zlogin index b012b72..3a9dd10 100644 --- a/zlogin +++ b/zlogin @@ -62,7 +62,7 @@ getc () ## Autorun an X session with some restrictions ## Set a ~/.noxorg file to work in tty only # If non-root session -if [ ${USER} != "root" ]; then +if [ ${USER} != "root" ] && [ $(command -v startx) ]; then # If it's a VC console and # no X session already launch and # no ~/.noxorg file exist