mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 19:32:36 +08:00
jMAVSim: disable GUI using HEADLESS=1
@katzfey added the option to run jMAVSim without GUI. Now we just need to read the HEADLESS env variable to use it.
This commit is contained in:
@@ -49,6 +49,10 @@ else
|
||||
device="-serial $device $baudrate"
|
||||
fi
|
||||
|
||||
if [ "$HEADLESS" = "1" ]; then
|
||||
extra_args="$extr_args -no-gui"
|
||||
fi
|
||||
|
||||
# jMAVSim crashes with Java 9 on macOS, therefore we need to use Java 8
|
||||
if [ "$(uname)" == "Darwin" ]; then
|
||||
bold=$(tput bold)
|
||||
|
||||
Reference in New Issue
Block a user