From 92d397dffb90a2df9475c5be2a278b7e1679a146 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 26 Dec 2020 23:12:20 -0800 Subject: [PATCH] Check if picom exists before trying to run it --- picom/.config/X11/Xsession.d/picom.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/picom/.config/X11/Xsession.d/picom.sh b/picom/.config/X11/Xsession.d/picom.sh index 1a095e8..4e1db7c 100755 --- a/picom/.config/X11/Xsession.d/picom.sh +++ b/picom/.config/X11/Xsession.d/picom.sh @@ -1,3 +1,5 @@ #!/usr/bin/env sh -pgrep picom || picom --daemon +command -v picom \ + && (pgrep picom \ + || picom --daemon)