Update autostart

Add condition to rotate screen if enabled in kioskbrowser.ini
This commit is contained in:
Karl0ss 2025-04-11 12:31:28 +01:00 committed by GitHub
parent 6a159135ac
commit cf6fcef28a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,6 +34,14 @@ then
xrandr --output "${MONITOR}" --mode "custom" xrandr --output "${MONITOR}" --mode "custom"
fi fi
# set a screen rotation (if specified)
ROTATE_SCREEN=$(get-ini /boot/kioskbrowser.ini screen rotate_screen)
if [ -n "${ROTATE_SCREEN}" ]
then
MONITOR=$(xrandr -q | grep " connected" | awk '{ print $1; }')
xrandr --output "${MONITOR}" --rotate ${ROTATE_SCREEN}
fi
# start chromium # start chromium
URL=$(get-ini /boot/kioskbrowser.ini browser url) URL=$(get-ini /boot/kioskbrowser.ini browser url)
chromium --start-fullscreen \ chromium --start-fullscreen \