added notes for next steps
authorChris Koeritz <fred@gruntose.com>
Wed, 26 Nov 2025 21:29:01 +0000 (16:29 -0500)
committerChris Koeritz <fred@gruntose.com>
Wed, 26 Nov 2025 21:29:01 +0000 (16:29 -0500)
working on odd bugs on cuboid host now.

scripts/core/start_xwin_screensaver.sh

index ffa202d344d0bd90eb47726af475147d9c72c736..55a9cfaf16c26bef4b33771551d21875574f91f4 100644 (file)
@@ -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.