Changeset 37616


Ignore:
Timestamp:
2023-04-06T18:12:33+12:00 (13 months ago)
Author:
anupama
Message:

Getting the mac icon for the gs3-server.app to display requires absolute paths from GSDL3SRCHOME

File:
1 edited

Legend:

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

    r35710 r37616  
    105105PRIORITY_HINT="`pwd`/packages/jre"
    106106if [ "$GSDLOS" = "darwin" ]; then
     107    # On mac, when double clicking the gs3-server.app icon, the current working dir is not $GSDL3SRCHOME
     108    if [ ! -d "$PRIORITY_HINT" ]; then
     109    PRIORITY_HINT="$GSDL3SRCHOME/packages/jre"
     110    fi
    107111    if [ ! -d "$PRIORITY_HINT" ]; then
    108112    PRIORITY_HINT=`/usr/libexec/java_home`
     
    110114   
    111115    # set the mac icon for when launching this script manually
    112     if [ -f "gs3-server.app/Contents/Resources/AutomatorApplet.icns" ]; then
     116    if [ -f "$GSDL3SRCHOME/gs3-server.app/Contents/Resources/AutomatorApplet.icns" ]; then
    113117    opt_properties="$opt_properties -Xdock:icon=gs3-server.app/Contents/Resources/AutomatorApplet.icns"
    114118    fi
Note: See TracChangeset for help on using the changeset viewer.