From a5474bd9762696064283c15486802acb7d22203e Mon Sep 17 00:00:00 2001 From: Gardouille Date: Wed, 30 Aug 2023 17:23:42 +0200 Subject: [PATCH] Replace pidof with pgrep to have regex --- zlogin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zlogin b/zlogin index d55e901..2c605da 100644 --- a/zlogin +++ b/zlogin @@ -64,7 +64,7 @@ if [ ${USER} != "root" ] && [ $(command -v startx) ]; then # no ~/.noxorg file exist if [ -z "${SSH_TTY}" ] && [ ! -f "${HOME}/.noxorg" ] && - ! pidof "/usr/lib/xorg/Xorg" ; then + ! pgrep --full -- "/usr/lib/xorg/Xorg|/usr/lib/Xorg" ; then echo "Aucune session X11 détectée, voulez vous en lancer une ? [O|n]" getc start_x if [ `echo "$start_x" | grep "n"` ];then