Files
rboullard e6f9e5b7a0
Docker Builders / build-base-builder (push) Successful in 19s
Docker Builders / build-cpp-builder (push) Successful in 3m35s
Wayland Update (#7)
Reviewed-on: #7
Co-authored-by: Romain BOULLARD <romain.boullard@protonmail.com>
2026-09-11 20:16:21 +00:00

12 lines
395 B
Bash

#!/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"