Files
chandra/docs/kiosk.md
T
Claude d521d0d840
CI / test (push) Successful in 4m10s
Kiosk mode: --kiosk CMD runs one fullscreen app, locked down, restarted when it exits
No panel, no compositor shortcuts or desktop menus, the focused window
fullscreen (dialogs float), CMD restarted with backoff. Ctrl+Alt+Shift+Escape
or chandra-ctl kiosk lock|unlock|status for admin work. --app-id sets the X11
WM_CLASS / Wayland app id of Chandra's own window. scripts/gamerig-kiosk.sh
runs Chandra as a gamerig rig's library window on its NVIDIA Xorg.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DPL5hgvjzw8hHirxRsXSsE
2026-11-26 02:22:03 +00:00

1.7 KiB

Kiosk mode

--kiosk CMD turns Chandra into a single-app shell: a game-streaming rig's home screen, a terminal on a stand, a wall display.

build/wasmhost build/compositor.wasm --socket "$XDG_RUNTIME_DIR/wayland-kiosk" --kiosk "foot"
build/wasmhost build/compositor.wasm --x11 --fullscreen --app-id gamerig-desktop --kiosk "my-launcher"

While the kiosk is locked (it starts locked):

  • no panel, and no room kept for it;
  • no compositor shortcuts: the Super tap, Super+D, Super+W, screenshots and recordings, Super+1..9 all do nothing, and Super isn't passed to the app;
  • no desktop or panel right-click menus;
  • the focused window fills the screen (fullscreen, no frame); other windows wait behind it, Alt+Tab brings them forward; dialogs (windows with a parent) float over it;
  • CMD is started with WAYLAND_DISPLAY set (as every app Chandra starts), and started again when no window is left: at once when its window goes, after 20 s if it never showed one, with a growing delay (1 s, 2 s, 4 s ... 30 s) if it keeps dying within 10 s of starting. "" starts nothing.

Admin escape: Ctrl+Alt+Shift+Escape unlocks the kiosk (panel, shortcuts and menus come back, windows leave fullscreen) and locks it again. From a script: chandra-ctl kiosk unlock, chandra-ctl kiosk lock, chandra-ctl kiosk status.

A kiosk doesn't reopen the last session's windows and doesn't save its own.

--app-id NAME sets the X11 WM_CLASS (with --x11) or the Wayland app id (with --window) of Chandra's own window, so a window manager rule or wmctrl -xa NAME can find it.

On a gamerig rig: scripts/gamerig-kiosk.sh, see kiosk-gamerig.md.

Code: compositor/host/kiosk.mbt, tests in compositor/host/kiosk_test.mbt.