spiegel-keyman/resources/docker-images/linux/run-tests.sh
Eberhard Beilharz 5176dd8a0e
refactor(linux): address code review comments
Also some cleanup.
2025-01-09 16:55:54 +01:00

24 lines
502 B
Bash
Executable file

#!/usr/bin/env bash
set -e
if [[ -z "${DOCKER_RUNNING:-}" ]]; then
echo "This script is intended to be run inside a docker container."
exit 0
fi
# Start system dbus
sudo dbus-daemon --system --fork
# Start session dbus
# shellcheck disable=SC2046 # SC2046: quote this to prevent word-splitting
export $(dbus-launch)
# Start Wayland
weston --no-config --socket=wayland-0 --backend=headless &
export WAYLAND_DISPLAY=wayland-0
# Start X11 (on Wayland)
Xwayland &
export DISPLAY=:0
"${@:-bash}"