mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-30 18:06:39 +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:
+1
-1
Submodule Tools/jMAVSim updated: def7501bc0...3bd51e67e0
@@ -49,6 +49,10 @@ else
|
|||||||
device="-serial $device $baudrate"
|
device="-serial $device $baudrate"
|
||||||
fi
|
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
|
# jMAVSim crashes with Java 9 on macOS, therefore we need to use Java 8
|
||||||
if [ "$(uname)" == "Darwin" ]; then
|
if [ "$(uname)" == "Darwin" ]; then
|
||||||
bold=$(tput bold)
|
bold=$(tput bold)
|
||||||
|
|||||||
Reference in New Issue
Block a user