mirror of
https://github.com/BetterCorp/BetterFrame.git
synced 2026-05-26 23:26:34 +00:00
Replace the user-mode kiosk service with a system unit that runs cage (single-app Wayland compositor) on tty1 as a dedicated unprivileged user. No desktop, no display manager, auto-restart on crash via Restart=always. setup-pi-kiosk.sh provisions the user, installs cage + seatd, disables any display manager, points default.target at multi-user, drops the PAM stack, and enables the service. Idempotent. Screen wake "auto-login": with no DM and no lockscreen, DPMS-driven sleep just turns the panel back on — the kiosk process is already running.
8 lines
418 B
Text
8 lines
418 B
Text
# PAM stack for cage when invoked via systemd's PAMName=cage.
|
|
# Permissive auth (no password) because the session is launched by systemd as
|
|
# bfkiosk after auto-login at the multi-user target. pam_systemd sets up the
|
|
# XDG_RUNTIME_DIR + session, pam_loginuid wires the audit id.
|
|
auth required pam_permit.so
|
|
account required pam_permit.so
|
|
session required pam_loginuid.so
|
|
session required pam_systemd.so
|