From b693f30e0b1f08a7198e0080a6552a5a6a71ff2b Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Wed, 3 Dec 2025 11:25:20 -0500 Subject: [PATCH] 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. --- scripts/system/start_xwin_screensaver.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.34.1