Fix kiosk mode

This commit is contained in:
Audiobuzz
2026-06-17 13:20:52 +00:00
parent fd84ba4180
commit 4b0e0135b3
5 changed files with 111 additions and 55 deletions
+16 -9
View File
@@ -1,12 +1,15 @@
# weston kiosk configuration (consumed by kiosk.service: weston --config=...).
# weston kiosk configuration (consumed by kiosk-session: weston --config=...).
#
# kiosk-shell makes every client fullscreen with no decorations/desktop — the
# kiosk behaviour cage gave us. The [autolaunch] app is the Chromium wrapper;
# watch=true makes weston exit when it exits, so kiosk.service (Restart=always)
# relaunches the whole stack on a browser crash.
# Target is EPEL 9's weston 8.0, which has NEITHER kiosk-shell.so NOR the
# [autolaunch] section (both arrived in weston 9.0). So we use desktop-shell.so —
# the only packaged shell that Chromium's xdg-shell surfaces work with — stripped
# down to a bare black surface, and launch Chromium ourselves from kiosk-session.
# Chromium --kiosk then fullscreens over this shell.
[core]
shell=kiosk-shell.so
# desktop-shell.so is the shell; fullscreen-shell needs a special client protocol
# Chromium doesn't speak, and kiosk-shell isn't in this weston.
shell=desktop-shell.so
# No screen blanking on a kiosk.
idle-time=0
# Don't refuse to start if no input device is present (headless/VM consoles).
@@ -14,6 +17,10 @@ require-input=false
# No X11 apps here — Chromium runs native Wayland (--ozone-platform=wayland).
xwayland=false
[autolaunch]
path=/usr/local/bin/kiosk-session
watch=true
[shell]
# Bare kiosk surface: no panel, solid black background, no animations, no lock.
# Chromium --kiosk draws fullscreen on top of this.
panel-position=none
background-color=0xff000000
animation=none
locking=false