From 4e28721b8eecbb3f894867d25913ce519cce098f Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 26 Dec 2020 23:13:49 -0800 Subject: [PATCH] Check if redshift-gtk exists before trying to run it --- redshift/.config/X11/Xsession.d/redshift-gtk.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/redshift/.config/X11/Xsession.d/redshift-gtk.sh b/redshift/.config/X11/Xsession.d/redshift-gtk.sh index 72898b0..e52f763 100755 --- a/redshift/.config/X11/Xsession.d/redshift-gtk.sh +++ b/redshift/.config/X11/Xsession.d/redshift-gtk.sh @@ -1,3 +1,5 @@ #!/usr/bin/env sh -pgrep redshift-gtk || { redshift-gtk & } +command -v redshift-gtk \ + && (pgrep redshift-gtk \ + || { redshift-gtk & })