Skip to content

Commit

Permalink
Do not show splash screen when options are present
Browse files Browse the repository at this point in the history
This simplifies the logic and makes more sense overall.
  • Loading branch information
dagwieers committed Jul 14, 2016
1 parent 3f18eab commit 961438a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/linux/dist/arduino
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ fi
# Collect options to java in an array, to properly handle whitespace in options
JAVA_OPTIONS=("-DAPP_DIR=$APPDIR" "-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel")

if [[ "$@" != *"--upload"* && "$@" != *"--verify"* && "$@" != *"--get-pref"* && "$@" != *"--save-prefs"* "$@" != *"--install-boards"* && "$@" != *"--install-library"* ]] ; then
# Only show the splash screen when no options are present
if [[ "$@" != *"--"* ]] ; then
JAVA_OPTIONS+=("-splash:$APPDIR/lib/splash.png")
fi

Expand Down

0 comments on commit 961438a

Please sign in to comment.