mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-06 08:55:34 +00:00
24 lines
502 B
Bash
Executable file
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}"
|