diff options
author | Simon Rettberg | 2024-03-20 16:14:04 +0100 |
---|---|---|
committer | Simon Rettberg | 2024-03-20 16:14:04 +0100 |
commit | acf6fc6e4948271181c2c2d16820e3318ce478b6 (patch) | |
tree | bc3ea685afc3c49a2cfcdf8d450dae96998c2c7c /core | |
parent | [kiosk-chromium] Poke idle-daemon some more to get accurate idle times (diff) | |
download | mltk-acf6fc6e4948271181c2c2d16820e3318ce478b6.tar.gz mltk-acf6fc6e4948271181c2c2d16820e3318ce478b6.tar.xz mltk-acf6fc6e4948271181c2c2d16820e3318ce478b6.zip |
[kiosk-chromium] More wait
Diffstat (limited to 'core')
-rw-r--r-- | core/modules/kiosk-chromium/data/opt/openslx/scripts/kiosk-launch.d/00-chromium | 7 |
1 files changed, 4 insertions, 3 deletions
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 |