From 86caaf1c50c30f01c44b2cc6f47e288b08298f55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1ximo=20Casta=C3=B1eda?= Date: Wed, 11 Jun 2025 12:48:09 +0200 Subject: [PATCH] UserBootscript: avoid opening nonexistent files Fixes: #19612 Change-Id: I6fe210e087adbd094cbfb5625d54fbe958f72473 --- data/config/boot/UserBootscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/config/boot/UserBootscript b/data/config/boot/UserBootscript index f1107363f5..f1dfc88b1a 100644 --- a/data/config/boot/UserBootscript +++ b/data/config/boot/UserBootscript @@ -3,9 +3,9 @@ # DO NOT EDIT! #===================================================================== # Start programs and open files in the boot launch folder -for file in $HOME/config/settings/boot/launch/* +for file in "$HOME"/config/settings/boot/launch/* do - /bin/open "$file" & + [ -e "$file" ] && /bin/open "$file" & done #===================================================================== # FEEL FREE TO EDIT BELOW