From a31f27c55c2a0d9588b6d516dca50b59011b9bad Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 6 Dec 2022 12:25:38 +0100 Subject: [kiosk-chromium/kiosk-slxbrowser] Honor SLX_BROWSER_ZOOM References #3915 --- .../data/opt/openslx/scripts/kiosk-launch.d/00-chromium | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core/modules/kiosk-chromium') 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 3ff0d636..29c2fe31 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 @@ -77,6 +77,14 @@ if [ -z "$SLX_BROWSER_INTERACTIVE" ]; then fi fi +if [ -n "$SLX_BROWSER_ZOOM" ]; then + v="${SLX_BROWSER_ZOOM}" + while [ "${#v}" -lt 3 ]; do + v="0$v" + done + chromium_args+=( "--force-device-scale-factor" "${v:0:-2}.${v:${#v}-2}" ) +fi + if [ -n "$SLX_BROWSER_RELOAD_SECS" ] && [ "$SLX_BROWSER_RELOAD_SECS" -gt 0 ]; then ( wid= -- cgit v1.2.3-55-g7522