diff options
Diffstat (limited to 'core/modules/slxbrowser/data/opt')
-rw-r--r-- | core/modules/slxbrowser/data/opt/openslx/lightdm/autologin.d/00-check-slxbrowser | 10 | ||||
-rwxr-xr-x | core/modules/slxbrowser/data/opt/openslx/scripts/kiosk-launch | 7 |
2 files changed, 16 insertions, 1 deletions
diff --git a/core/modules/slxbrowser/data/opt/openslx/lightdm/autologin.d/00-check-slxbrowser b/core/modules/slxbrowser/data/opt/openslx/lightdm/autologin.d/00-check-slxbrowser new file mode 100644 index 00000000..4fe45c02 --- /dev/null +++ b/core/modules/slxbrowser/data/opt/openslx/lightdm/autologin.d/00-check-slxbrowser @@ -0,0 +1,10 @@ +#!/bin/ash +# This file is SOURCED + +# Kiosk mode? +if [ -n "$SLX_BROWSER_URL" ]; then + exec /opt/openslx/scripts/kiosk-launch +fi + +true + diff --git a/core/modules/slxbrowser/data/opt/openslx/scripts/kiosk-launch b/core/modules/slxbrowser/data/opt/openslx/scripts/kiosk-launch index ed8a205f..566bbb16 100755 --- a/core/modules/slxbrowser/data/opt/openslx/scripts/kiosk-launch +++ b/core/modules/slxbrowser/data/opt/openslx/scripts/kiosk-launch @@ -9,5 +9,10 @@ xset -dpms openbox & -exec slxbrowser --insecure --fullscreen "$SLX_BROWSER_URL" +[ -n "$SLX_BROWSER_INSECURE" ] && SLX_BROWSER_INSECURE="--insecure" +RELOAD= +[ -n "$SLX_BROWSER_RELOAD_SECS" ] && [ "$SLX_BROWSER_RELOAD_SECS" -gt 0 ] && RELOAD="--reload-interval $SLX_BROWSER_RELOAD_SECS" + +xdotool mousemove 20000 20000 & +exec slxbrowser $SLX_BROWSER_INSECURE $RELOAD --fullscreen "$SLX_BROWSER_URL" |