Skip to content

Commit

Permalink
[NETBEANS-87] Errornous warning about DISPLAY var
Browse files Browse the repository at this point in the history
If --nogui is used on cmd line, then there's no
reason to display warning about DISPLAY var
not being set.
  • Loading branch information
lbruun committed Oct 21, 2017
1 parent fc31957 commit 3e31735
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion o.n.bootstrap/launcher/unix/nbexec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 3e31735

Please sign in to comment.