mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-12 21:02:13 +08:00
d3ead5e4ff
* test ui * report + common * in ci * fix * dont enable in ci yet old-commit-hash: e2ec5be6eec73f6455727313ba2b9c5bb01cce8c
15 lines
344 B
Bash
Executable File
15 lines
344 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 |