mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 11:13:53 +08:00
* add test * simpler * simpler * false * move these here * faster * map takes logner to render
19 lines
403 B
Bash
Executable File
19 lines
403 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Sets up a virtual display for running map renderer and simulator without an X11 display
|
|
|
|
DISP_ID=99
|
|
export DISPLAY=:$DISP_ID
|
|
|
|
sudo Xvfb $DISPLAY -screen 0 2160x1080x24 2>/dev/null &
|
|
|
|
# check for x11 socket for the specified display ID
|
|
while [ ! -S /tmp/.X11-unix/X$DISP_ID ]
|
|
do
|
|
echo "Waiting for Xvfb..."
|
|
sleep 1
|
|
done
|
|
|
|
touch ~/.Xauthority
|
|
export XDG_SESSION_TYPE="x11"
|
|
xset -q |