From 658bbf0d939c60f1c94f66ce00a092cc5db74187 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Mon, 18 Jul 2022 15:07:27 +0000 Subject: [PATCH] Test if per-host scripts dir exists before trying to access it --- home/.xlaunch | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/home/.xlaunch b/home/.xlaunch index be3cc36..213e0b2 100755 --- a/home/.xlaunch +++ b/home/.xlaunch @@ -15,9 +15,14 @@ launch_common() { launch_specialized() { # XXX dunst lazily started by dbus - for script in ~/.xlaunch.d."$(hostname)"/*; do - "$script" - done + local -r scripts_dir=~/.xlaunch.d."$(hostname)" + + if test -f "$scripts_dir" + then + for script in "$scripts_dir"/*; do + "$script" + done + fi } launch_common -- 2.20.1