Update kiosk to use weston

This commit is contained in:
Audiobuzz
2026-06-17 09:32:59 +00:00
parent 61088d4e6d
commit 0bcf6fb2aa
4 changed files with 65 additions and 34 deletions
+8 -4
View File
@@ -1,6 +1,6 @@
[Unit]
Description=Wayland kiosk (cage + Chromium)
Documentation=https://github.com/cage-kiosk/cage
Description=Wayland kiosk (weston kiosk-shell + Chromium)
Documentation=man:weston(1) man:weston.ini(5)
# Take over tty1 from the login getty and start after the network is up (the
# kiosk loads a URL). plymouth-quit lets the splash hand off cleanly.
After=systemd-user-sessions.service plymouth-quit-wait.service getty@tty1.service network-online.target
@@ -24,8 +24,12 @@ StandardError=journal
UtmpIdentifier=tty1
UtmpMode=user
EnvironmentFile=/etc/kiosk/kiosk.env
# cage -s: single-client kiosk compositor; runs the wrapper, exits when it does.
ExecStart=/usr/bin/cage -s -- /usr/local/bin/kiosk-session
# weston with kiosk-shell (every app fullscreen). --use-pixman = software
# rendering for VMs/no-GPU. weston.ini's [autolaunch] runs /usr/local/bin/
# kiosk-session (Chromium) and, with watch=true, weston exits if it dies — so
# Restart=always relaunches the whole stack. cage (the original choice) isn't
# packaged for EL9; weston kiosk-shell is the minimal EL9-available equivalent.
ExecStart=/usr/bin/weston --use-pixman --config=/etc/xdg/weston/weston.ini
Restart=always
RestartSec=2