diff options
-rw-r--r-- | core/modules/kiosk-chromium/data/opt/openslx/scripts/kiosk-launch.d/00-chromium | 8 | ||||
-rw-r--r-- | core/modules/kiosk-slxbrowser/data/opt/openslx/scripts/kiosk-launch.d/00-slxbrowser | 4 |
2 files changed, 12 insertions, 0 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 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= diff --git a/core/modules/kiosk-slxbrowser/data/opt/openslx/scripts/kiosk-launch.d/00-slxbrowser b/core/modules/kiosk-slxbrowser/data/opt/openslx/scripts/kiosk-launch.d/00-slxbrowser index 279f30f3..4ec49eca 100644 --- a/core/modules/kiosk-slxbrowser/data/opt/openslx/scripts/kiosk-launch.d/00-slxbrowser +++ b/core/modules/kiosk-slxbrowser/data/opt/openslx/scripts/kiosk-launch.d/00-slxbrowser @@ -40,6 +40,10 @@ else OPTS+=("--fullscreen") fi +if [ -n "$SLX_BROWSER_ZOOM" ]; then + OPTS+=( "--zoom" "$SLX_BROWSER_ZOOM" ) +fi + # HACK: give whatever enough time to whatever it does properly sleep 1 |