From c3529baa5bafb66b436d9ce8c68d3004d06688f8 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Thu, 22 Aug 2019 17:29:46 +0200 Subject: [PATCH] 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. --- Tools/jMAVSim | 2 +- Tools/jmavsim_run.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Tools/jMAVSim b/Tools/jMAVSim index def7501bc0..3bd51e67e0 160000 --- a/Tools/jMAVSim +++ b/Tools/jMAVSim @@ -1 +1 @@ -Subproject commit def7501bc0536b8d1050f65d09c7dfbebcc0ce61 +Subproject commit 3bd51e67e022ce59644d33ebdf6570c2ea88ddb6 diff --git a/Tools/jmavsim_run.sh b/Tools/jmavsim_run.sh index a974edee27..b04912afdd 100755 --- a/Tools/jmavsim_run.sh +++ b/Tools/jmavsim_run.sh @@ -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)