From a8d15bfc8955af81943c7aef60784d4539cbdcf2 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 17 Nov 2025 18:46:35 +0000 Subject: [PATCH] Release v0.9.12: Fix rotation and media playback bugs Fixes three critical bugs: 1. Fixed inactivity popup appearing on every rotated site - userInteractedWithCurrentSite now resets when switching sites - Each site independently tracks user interaction - Popup only appears on sites user actually touched 2. Fixed rotation not resuming after "I'm still here" response - Clicking "I'm still here" now sets manualNavigationMode=false - Rotation resumes after user acknowledges prompt 3. Fixed rotation stuck after media playback ends - After media grace period (30s), manualNavigationMode resets - Prevents black screen when media stops - Normal rotation automatically resumes User-reported issue: Sites showing for full duration, no popup spam, media playback properly returns to rotation. --- ...osk_v0.9.11.sh => install_kiosk_v0.9.12.sh | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) rename install_kiosk_v0.9.11.sh => install_kiosk_v0.9.12.sh (99%) diff --git a/install_kiosk_v0.9.11.sh b/install_kiosk_v0.9.12.sh similarity index 99% rename from install_kiosk_v0.9.11.sh rename to install_kiosk_v0.9.12.sh index 0bf27ed..32b7097 100644 --- a/install_kiosk_v0.9.11.sh +++ b/install_kiosk_v0.9.12.sh @@ -1,9 +1,22 @@ #!/bin/bash ################################################################################ -### Ubuntu Based Kiosk (UBK) v0.9.11 ### +### Ubuntu Based Kiosk (UBK) v0.9.12 ### ################################################################################ # -# RELEASE v0.9.11 - Media Playback Clarifications +# RELEASE v0.9.12 - Rotation and Media Bug Fixes +# +# What's in v0.9.12: +# - Fixed inactivity popup appearing on every rotated site +# * userInteractedWithCurrentSite now resets when switching sites +# * Each site independently tracks whether user has interacted with it +# * Popup only appears on sites where user actually touched/interacted +# - Fixed rotation not resuming after "I'm still here" response +# * Clicking "I'm still here" on inactivity prompt now resumes rotation +# * User acknowledgement indicates they're done with current activity +# - Fixed rotation stuck after media playback ends +# * After media grace period (30s), rotation automatically resumes +# * Prevents black screen when media stops playing +# * Normal rotation behavior resumes after media ends # # What's in v0.9.11: # - Clarified media playback behavior in comments @@ -3583,7 +3596,7 @@ const path=require('path'); const os=require('os'); const CONFIG_FILE=path.join(__dirname,'config.json'); -const VERSION='0.9.10'; +const VERSION='0.9.12'; let mainWindow,views=[],hiddenViews=[],tabs=[],currentIndex=0,showingHidden=false; let pinWindow=null,promptWindow=null,htmlKeyboardWindow=null; @@ -3889,6 +3902,13 @@ function startMasterTimer(){ return; } + // v0.9.11: After media grace period expires, resume rotation + // This prevents being stuck on a black screen after media ends + if(timeSinceMediaStopped>=MEDIA_GRACE_PERIOD&&timeSinceMediaStopped