From 3e31735fe3648e70f0bc8e2a3c3d2c34261208ff Mon Sep 17 00:00:00 2001 From: Lars Bruun-Hansen Date: Sat, 21 Oct 2017 09:13:47 +0200 Subject: [PATCH] [NETBEANS-87] Errornous warning about DISPLAY var If --nogui is used on cmd line, then there's no reason to display warning about DISPLAY var not being set. --- o.n.bootstrap/launcher/unix/nbexec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/o.n.bootstrap/launcher/unix/nbexec b/o.n.bootstrap/launcher/unix/nbexec index acd0b0eece5e..df47fa01ef75 100644 --- a/o.n.bootstrap/launcher/unix/nbexec +++ b/o.n.bootstrap/launcher/unix/nbexec @@ -81,6 +81,10 @@ EOF nosplash="nosplash"; args="$args --nosplash" ;; + --nogui) + nogui="nogui"; + args="$args --nogui" + ;; --jdkhome) shift; if [ $# -gt 0 ] ; then jdkhome=$1; fi ;; # this has to be here for purposes of updater.jar, but it should be @@ -356,7 +360,7 @@ J2D_PIXMAPS=shared export J2D_PIXMAPS # Check DISPLAY variable on non-Mac -if [ "no$DISPLAY" = "no" -a `uname` != Darwin ]; then +if [ "no$DISPLAY" = "no" -a `uname` != Darwin -a -z "$nogui" ]; then echo "$0: WARNING: environment variable DISPLAY is not set" fi