Skip to content
Browse files

Added possibility to hide dock icon on Mac OS X in startup script (th…

…anks, aki!)
  • Loading branch information...
1 parent 397793e commit 4ee0bcca289d319d1ea5de87e2267e617aca7a79 @Raptor399 Raptor399 committed Aug 19, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/main/external-resources/osx/pms.sh
View
4 src/main/external-resources/osx/pms.sh
@@ -4,6 +4,9 @@
# Environment that is provided in the PlugIns directory.
#
+# Set this to true if you want to hide the dock icon by default
+hide_dock_icon=false
+
DIRNAME=`dirname "$0"`
# By default Mac OS X LC_ALL is set to "C", which means files with special characters will not be found.
@@ -43,6 +46,7 @@ cd "$PMS_HOME"
"$JAVA_HOME/bin/java" $JAVA_OPTS \
-Xmx768M -Xss1024k -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true \
-Xdock:icon="$APPLICATION_DIR/Contents/Resources/pms.icns" \
+ -Dapple.awt.UIElement="$hide_dock_icon" \
-classpath "$PMS_JARS" \
net.pms.PMS

0 comments on commit 4ee0bcc

Please sign in to comment.
Something went wrong with that request. Please try again.