From 64bd23fa8ff4922d9d7e4b4cbbc07bbb89d37360 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Wed, 5 Feb 2020 11:28:43 +0100 Subject: [kiosk-slxbrowser] honor SLX_AUTOLOGIN instead of SLX_BROWSER_INTERACTIVE which makes no sense in slxbrowser anyways. Also wait a tad longer before starting to work around that stupid bug that the browser started but invisible until the user presses a key/mouse (weird openbox/QT interaction?). --- .../data/opt/openslx/scripts/kiosk-launch.d/00-slxbrowser | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/kiosk-slxbrowser/data/opt/openslx/scripts/kiosk-launch.d/00-slxbrowser b/core/modules/kiosk-slxbrowser/data/opt/openslx/scripts/kiosk-launch.d/00-slxbrowser index 3f81c093..fc8d0eae 100644 --- a/core/modules/kiosk-slxbrowser/data/opt/openslx/scripts/kiosk-launch.d/00-slxbrowser +++ b/core/modules/kiosk-slxbrowser/data/opt/openslx/scripts/kiosk-launch.d/00-slxbrowser @@ -26,13 +26,13 @@ if [ -n "$SLX_BROWSER_URLLIST" ]; then ( sleep 5; rm -f -- "$LIST" ) & fi -if [ -n "$SLX_BROWSER_INTERACTIVE" ]; then +if [ -z "${SLX_AUTOLOGIN%OFF}" ]; then OPTS+=("--maximized") else OPTS+=("--fullscreen") fi # HACK: give whatever enough time to whatever it does properly -usleep 500000 +sleep 1 exec slxbrowser "${OPTS[@]}" "$SLX_BROWSER_URL" -- cgit v1.2.3-55-g7522