Skip to content

Commit 354fe10

Browse files
authored
Do not require X11 DISPLAY for CLI prefs changes
Settings preferences does not need a splash-screen. Avoid needing an X11 DISPLAY in this case so CI solutions do not bail out (e.g. Travis). More information in arduino#5131. This fixes arduino#5131.
1 parent 830fe76 commit 354fe10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: build/linux/dist/arduino

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fi
2727
# Collect options to java in an array, to properly handle whitespace in options
2828
JAVA_OPTIONS=("-DAPP_DIR=$APPDIR" "-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel")
2929

30-
if [[ "$@" != *"--upload"* && "$@" != *"--verify"* && "$@" != *"--get-pref"* && "$@" != *"--install-board"* && "$@" != *"--install-library"* ]] ; then
30+
if [[ "$@" != *"--upload"* && "$@" != *"--verify"* && "$@" != *"--get-pref"* && "$@" != *"--pref"* && "$@" != *"--install-board"* && "$@" != *"--install-library"* ]] ; then
3131
JAVA_OPTIONS+=("-splash:$APPDIR/lib/splash.png")
3232
fi
3333

0 commit comments

Comments
 (0)