From: Chris Koeritz Date: Wed, 3 Dec 2025 16:25:20 +0000 (-0500) Subject: added a guard to catch an unusual error X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=b693f30e0b1f08a7198e0080a6552a5a6a71ff2b;p=feisty_meow.git added a guard to catch an unusual error ran this recently and seemed to think things were installed, but then xsecurelock wasn't really there. this at least catches this situation; still need to fix deeper cause of problem. --- diff --git a/scripts/system/start_xwin_screensaver.sh b/scripts/system/start_xwin_screensaver.sh index 4fbfb5c9..449b673b 100644 --- a/scripts/system/start_xwin_screensaver.sh +++ b/scripts/system/start_xwin_screensaver.sh @@ -55,6 +55,13 @@ killall -9 xscreensaver &>/dev/null # fix the xsecurelock file for the xscreensaver; paths haven't been updated to latest. XSECURELOCK_XSCREENSAVER='/usr/libexec/xsecurelock/saver_xscreensaver' +if [ ! -f "$XSECURELOCK_XSCREENSAVER" ]; then + echo " +An error occurred and the xsecurelock tool was not installed properly. +This file is missing: $XSECURELOCK_XSCREENSAVER +Abandoning screensaver setup." + exit 1 +fi grep -q '/usr/lib/xscreensaver' $XSECURELOCK_XSCREENSAVER #hmmm: also, check that we're using the right path for xscreensaver! what if old system, where in old place? if [ $? -eq 0 ]; then