Ignore:
Timestamp:
2015-08-22T19:22:41+12:00 (6 years ago)
Author:
ak19
Message:

Mac icons for when launching the startup scripts from the command line. This also ensures the appropriate icon for the second item in the dock panel when launching the .app files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/gs3-server.sh

    r30106 r30119  
    104104# JRE_HOME or JAVA_HOME must be set correctly to run this program
    105105HINT="`pwd`/packages/jre"
    106 if [ "$GSDLOS" = "darwin" ] && [ ! -d "$HINT" ]; then
    107     HINT=`/usr/libexec/java_home`
     106if [ "$GSDLOS" = "darwin" ]; then
     107    if [ ! -d "$HINT" ]; then
     108    HINT=`/usr/libexec/java_home`
     109    fi
     110   
     111    # set the mac icon for when launching this script manually
     112    if [ -f "gs3-server.app/Contents/Resources/AutomatorApplet.icns" ]; then
     113    opt_properties="$opt_properties -Xdock:icon=gs3-server.app/Contents/Resources/AutomatorApplet.icns"
     114    fi
    108115fi
     116
    109117javapath=`search4j -p "$HINT" -m $java_min_version -e`
    110118if [ "$?" == "0" ]; then
Note: See TracChangeset for help on using the changeset viewer.