Skip to content

Commit

Permalink
Adds OSX dock options (#151)
Browse files Browse the repository at this point in the history
* Adds OSX dock options to GUI launcher

* Use ledger.png

This way, it retains the original name
  • Loading branch information
colindean authored and hrj committed Jul 4, 2017
1 parent e42ff29 commit 7fa8773
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tools/abandon_gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,11 @@ fi

BASEDIR=`dirname $0`

$JAVA_CMD -jar ${BASEDIR}/lib/abandon.jar -g $*
EXTRA_OPTIONS=""
if [ "$(uname -s)" == "Darwin" ]
then
# The dock name won't actually work until https://bugs.openjdk.java.net/browse/JDK-8029440 is fixed
EXTRA_OPTIONS='-Xdock:icon=ledger.png -Xdock:name=Abandon -Dcom.apple.mrj.application.apple.menu.about.name=Abandon -Dapple.awt.application.name=Abandon'
fi

$JAVA_CMD ${EXTRA_OPTIONS} -jar ${BASEDIR}/lib/abandon.jar -g $*

0 comments on commit 7fa8773

Please sign in to comment.