[X2Go-Commits] [live-build-x2go] 79/108: This script would kill the XServer startup when no XSCREENSAVER-related parameters were set. Also, added defaults for idle and slide display/change time
git-admin at x2go.org
git-admin at x2go.org
Wed Mar 20 22:13:21 CET 2019
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch feature/openbox
in repository live-build-x2go.
commit 34c17705a40b775fddd35d13fe966f88e6259dc0
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date: Wed Jan 16 18:27:16 2019 +0000
This script would kill the XServer startup when no XSCREENSAVER-related parameters were set. Also, added defaults for idle and slide display/change time
---
.../etc/X11/Xsession.d/60x11-spawn-configure-slideshow-screensaver | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/config/includes.chroot/etc/X11/Xsession.d/60x11-spawn-configure-slideshow-screensaver b/config/includes.chroot/etc/X11/Xsession.d/60x11-spawn-configure-slideshow-screensaver
index 1fa1f68..b924f90 100644
--- a/config/includes.chroot/etc/X11/Xsession.d/60x11-spawn-configure-slideshow-screensaver
+++ b/config/includes.chroot/etc/X11/Xsession.d/60x11-spawn-configure-slideshow-screensaver
@@ -10,7 +10,7 @@ IMAGEDIR="/var/tmp/images/"
SLIDESDIR="${IMAGEDIR}/slides/"
if [ -z "$XSAVERIMAGES" ] && [ -z "$XSAVERIDLETIME" ] && [ -z "$XSAVERIMGTIME" ] ; then
- exit 0
+ : # "exit 0" is a bad idea here, so we "NOP" instead
else
if echo "$XSAVERIMAGES" | grep -q "://" ; then
@@ -20,6 +20,9 @@ else
wget -q -P $IMAGEDIR/slides/ -N ${XSAVERIMAGES//|/ }
fi
+ [ -z "$XSAVERIDLETIME" ] && XSAVERIDLETIME=300 # default to 5 minutes if parameter wasn't set
+ [ -z "$XSAVERIMGTIME" ] && XSAVERIMGTIME=30 # default to 30 seconds if parameter wasn't set
+
IDLE_TIME=$(($XSAVERIDLETIME*1000))
BLACK=false
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
More information about the x2go-commits
mailing list