Show
Ignore:
Timestamp:
14.01.2011 18:47:45 (9 years ago)
Author:
ak19
Message:

Changed the script files that launch GS applications to contain an extra Java VM argument called Xdock:name for Darwin (MacOS) machines that will set the program abbreviation as the visible name of the top Mac menubar when the application is running in the Dock menu at the bottom.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/gs2-server.sh

    r20896 r23590  
    145145    fi 
    146146 
     147    # -Xdock:name      To set the name of the app in the MacOS Dock bar 
     148    # -Xdock:icon      Path to the MacOS Doc icon (not necessary for GS)     
     149    custom_vm_args="" 
     150    if [ "$GSDLOS" = "darwin" ]; then 
     151        custom_vm_args="-Xdock:name=$PROGABBR" 
     152    fi 
     153 
     154 
    147155    if [ "x$silent" == "x" -o "x$silent" != "xtrue" ]; then  
    148156        # verbose mode, show all output, but then we can't run the server interface in the background 
    149157     
    150     "$javapath" org.greenstone.server.Server2 "$GSDLHOME" "$serverlang" $* 
     158    "$javapath" $custom_vm_args org.greenstone.server.Server2 "$GSDLHOME" "$serverlang" $* 
    151159    else 
    152160        # If we launch the Greenstone Server Interface application in the background (with & at end) 
    153161        # need to redirect any STDERR (STDOUT) output to /dev/null first, else output will hog the x-term. 
    154     "$javapath" org.greenstone.server.Server2 "$GSDLHOME" "$serverlang" $* > /dev/null & 
     162    "$javapath" $custom_vm_args org.greenstone.server.Server2 "$GSDLHOME" "$serverlang" $* > /dev/null & 
    155163    fi 
    156164