From: Chris Koeritz Date: Wed, 26 Nov 2025 21:29:01 +0000 (-0500) Subject: added notes for next steps X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=d44cd6e0fff9096abad44aee62f779443d4f56e9;p=feisty_meow.git added notes for next steps working on odd bugs on cuboid host now. --- diff --git a/scripts/core/start_xwin_screensaver.sh b/scripts/core/start_xwin_screensaver.sh index ffa202d3..55a9cfaf 100644 --- a/scripts/core/start_xwin_screensaver.sh +++ b/scripts/core/start_xwin_screensaver.sh @@ -13,7 +13,15 @@ if ! test_for_xwin; then exit 1 fi +# see if xss-lock is already running. xss_running="$(psa xss-lock)" +# clean up CRLF type junk to allow emptiness check. +xss_running=${xss_running//$'\n'/} +xss_running=${xss_running//$'\r'/} + +if [ ! -z "$DEBUG_FEISTY_MEOW" ]; then + echo -e "check for running xss-lock came up with: '$xss_running'" +fi if [ ! -z "$xss_running" ]; then if [ ! -z "$DEBUG_FEISTY_MEOW" ]; then echo "The xss-lock application is already running, so a screensaver is already hooked in." @@ -21,6 +29,24 @@ if [ ! -z "$xss_running" ]; then exit 0 fi +#steps still to take: +# install xsecurelock and such if not present yet. +# install xscreensaver and packages if not present yet. +# use our feisty meow version of sudo grabbing thingy. +#sudo apt install xsecurelock mpv xscreensaver-data xscreensaver-data-extra xscreensaver-gl xscreensaver-gl-extra xscreensaver xss-lock + +# need to kill xscreensaver if it's running. +# e.g. killall -9 xscreensaver + +# need to fix the xsecurelock file for the xscreensaver... +# => we have a function that does this kind of replacement editing! +# in file: +# /usr/libexec/xsecurelock/saver_xscreensaver +# modify this line: +# : ${XSECURELOCK_XSCREENSAVER_PATH:=/usr/lib/xscreensaver} +# to become this line: +# : ${XSECURELOCK_XSCREENSAVER_PATH:=/usr/share/xscreensaver} + DIMMER="/usr/libexec/xsecurelock/dimmer" if [ ! -x "$DIMMER" ]; then if [ ! -z "$DEBUG_FEISTY_MEOW" ]; then @@ -34,7 +60,7 @@ exit_on_error "setting the x window inactivity timeout" start_background_action \ "xss-lock -n "$DIMMER" -l -- xsecurelock" -exit_on_error "installing xsecurelock as the screensaver when inactive" +exit_on_error "installing xsecurelock as the screensaver" if [ ! -z "$DEBUG_FEISTY_MEOW" ]; then echo xsecurelock has been started.