Update kiosk to use weston
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
# weston kiosk configuration (consumed by kiosk.service: 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.
|
||||
|
||||
[core]
|
||||
shell=kiosk-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).
|
||||
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
|
||||
Reference in New Issue
Block a user