From d7bbb60ab677562895568ced6fcd275659ec1f05 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 5 Dec 2023 16:29:26 +0100 Subject: [kiosk-chromium] Fix reload on inactivity Home button default behavior has changed; update policy. Also, killall chromium was missing for debian, but should've been handled by the follow-up session-terminate command. --- .../data/opt/openslx/pam/hooks/session-open.d/00-chromium-policies | 1 + .../kiosk-chromium/data/opt/openslx/scripts/kiosk-launch.d/00-chromium | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/modules/kiosk-chromium/data/opt/openslx/pam/hooks/session-open.d/00-chromium-policies b/core/modules/kiosk-chromium/data/opt/openslx/pam/hooks/session-open.d/00-chromium-policies index 7137f8cf..28edd8ef 100644 --- a/core/modules/kiosk-chromium/data/opt/openslx/pam/hooks/session-open.d/00-chromium-policies +++ b/core/modules/kiosk-chromium/data/opt/openslx/pam/hooks/session-open.d/00-chromium-policies @@ -24,6 +24,7 @@ create_chromium_policies() { "DeviceAutoUpdateDisabled": true, "DownloadRestrictions": 3, "HomepageLocation": $url, + "HomepageIsNewTabPage": false, "NewTabPageLocation": "about:blank", "PasswordManagerEnabled": false, "RestoreOnStartup": 4, 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 98f8fa23..a11d4cbb 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 @@ -115,7 +115,7 @@ if [ -n "$SLX_BROWSER_RELOAD_SECS" ] && [ "$SLX_BROWSER_RELOAD_SECS" -gt 0 ]; th if (( current_idle >= SLX_BROWSER_RELOAD_SECS )); then if [ "$activity" = "yes" ] && [ -n "$SLX_BROWSER_INTERACTIVE" ]; then # activity was seen, interactive browser (UI) -> kill session - killall chromium-browser + killall chromium-browser chromium loginctl terminate-user demo else xdotool windowactivate "$wid" -- cgit v1.2.3-55-g7522