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:
Julian Oes
2019-08-22 17:29:46 +02:00
committed by Beat Küng
parent 3c0f4f9ace
commit c3529baa5b
2 changed files with 5 additions and 1 deletions

View File

@@ -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)