Wayland (#8)
Docker Builders / build-base-builder (push) Successful in 16s
Docker Builders / build-cpp-builder (push) Successful in 3m33s

Reviewed-on: #8
This commit was merged in pull request #8.
This commit is contained in:
2026-09-11 20:24:09 +00:00
parent 5f598b22af
commit 03b19ccd1d
2 changed files with 24 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
# Runs the given command against a headless Weston compositor, mirroring xvfb-run's ergonomics
# for Wayland. Usage: weston-run <command> [args...]
weston --backend=headless-backend.so --shell=kiosk-shell.so --socket=wayland-headless &
WESTON_PID=$!
sleep 1
WAYLAND_DISPLAY=wayland-headless "$@"
STATUS=$?
kill "$WESTON_PID" 2>/dev/null
wait "$WESTON_PID" 2>/dev/null
exit "$STATUS"