Skip to content

Commit 1b95b43

Browse files
committed
Do not show splash screen when options are present
This ensures now splash-screen is shown when preferences are changed or CLI-mode is used. More information in arduino#5131. However this does NOT fix arduino#5131, since the Arduino IDE in CLI-mode still requires X11 (according to arduino#1981).
1 parent 830fe76 commit 1b95b43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: build/linux/dist/arduino

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ 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+
# Only show the splash screen when no options are present
31+
if [[ "$@" != *"--"* ]] ; then
3132
JAVA_OPTIONS+=("-splash:$APPDIR/lib/splash.png")
3233
fi
3334

0 commit comments

Comments
 (0)