From acf6fc6e4948271181c2c2d16820e3318ce478b6 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 20 Mar 2024 16:14:04 +0100 Subject: [kiosk-chromium] More wait --- .../data/opt/openslx/scripts/kiosk-launch.d/00-chromium | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'core') diff --git a/core/modules/kiosk-chromium/data/opt/openslx/scripts/kiosk-launch.d/00-chromium b/core/modules/kiosk-chromium/data/opt/openslx/scripts/kiosk-launch.d/00-chromium index 8ae8a917..4f5ba84e 100644 --- a/core/modules/kiosk-chromium/data/opt/openslx/scripts/kiosk-launch.d/00-chromium +++ b/core/modules/kiosk-chromium/data/opt/openslx/scripts/kiosk-launch.d/00-chromium @@ -120,14 +120,15 @@ if [ -n "$SLX_BROWSER_RELOAD_SECS" ] && [ "$SLX_BROWSER_RELOAD_SECS" -gt 0 ]; th # activity was seen, interactive browser (UI) -> kill session killall chromium-browser chromium loginctl terminate-user demo + exit 0 else xdotool windowactivate "$wid" xdotool key Alt+Home last="$current_idle" - sleep "$SLX_BROWSER_RELOAD_SECS" + sleep "$(( SLX_BROWSER_RELOAD_SECS - 10 ))" # Wake up to force refresh idle-daemon --send 'get :0' &> /dev/null - sleep 1 + sleep 10 activity=init continue fi @@ -137,7 +138,7 @@ if [ -n "$SLX_BROWSER_RELOAD_SECS" ] && [ "$SLX_BROWSER_RELOAD_SECS" -gt 0 ]; th activity=yes fi last="$current_idle" - num="$(( SLX_BROWSER_RELOAD_SECS - ( current_idle + 3 ) ))" + num="$(( SLX_BROWSER_RELOAD_SECS - ( current_idle + 5 ) ))" (( num < 1 )) && num=1 sleep "$num" done -- cgit v1.2.3-55-g7522