diff options
author | Simon Rettberg | 2023-12-05 16:29:26 +0100 |
---|---|---|
committer | Simon Rettberg | 2023-12-05 16:29:26 +0100 |
commit | d7bbb60ab677562895568ced6fcd275659ec1f05 (patch) | |
tree | f84c65391fe084ee5d6bf8243006f4e85a4e6537 | |
parent | [kiosk-chromium] Fix setting scale factor (diff) | |
download | mltk-d7bbb60ab677562895568ced6fcd275659ec1f05.tar.gz mltk-d7bbb60ab677562895568ced6fcd275659ec1f05.tar.xz mltk-d7bbb60ab677562895568ced6fcd275659ec1f05.zip |
[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.
-rw-r--r-- | core/modules/kiosk-chromium/data/opt/openslx/pam/hooks/session-open.d/00-chromium-policies | 1 | ||||
-rw-r--r-- | core/modules/kiosk-chromium/data/opt/openslx/scripts/kiosk-launch.d/00-chromium | 2 |
2 files changed, 2 insertions, 1 deletions
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" |