Ignore:
Timestamp:
2011-01-14T18:47:45+13:00 (13 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/client-gli.sh

    r19769 r23590  
    1616    PROGFULLNAME=$PROGNAME
    1717fi
     18export PROGNAME
     19export PROGFULLNAME
    1820
    1921if [ "x$PROGABBR" = "x" ] ; then
    20     PROGABBR="GLI"
     22    PROGABBR="Client-GLI"
    2123fi
     24export PROGABBR
    2225
    2326if [ "x$PROGNAME_EN" = "x" ] ; then
    24     PROGNAME_EN="Greenstone Librarian Interface"
     27    PROGNAME_EN="Greenstone Librarian Interface - Remote Client"
    2528fi
     29export PROGNAME_EN
    2630
    2731# we're running GLI (or FLI) in client mode
     
    132136# -Xloggc:<file>   Write garbage collection log
    133137
     138# -Xdock:name      To set the name of the app in the MacOS Dock bar
     139# -Xdock:icon      Path to the MacOS Doc icon (not necessary for GS)   
     140custom_vm_args=""
     141if [ "$GSDLOS" = "darwin" ]; then
     142    custom_vm_args="-Xdock:name=$PROGABBR"
     143fi
     144
    134145# GS2 only requires -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar. GS3 requires more but it doesn't conflict with GS2:
    135146if [ "$local_gs" = "false" ]; then
    136147    echo "Since there's no GSDLHOME, client-GLI's download panel will be deactivated."
    137148    echo
    138     $javapath -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar:lib/commons-codec-1.3.jar:lib/commons-httpclient-3.1-rc1.jar:lib/commons-logging-1.1.jar org.greenstone.gatherer.GathererProg -use_remote_greenstone $*
     149    $javapath -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar:lib/commons-codec-1.3.jar:lib/commons-httpclient-3.1-rc1.jar:lib/commons-logging-1.1.jar $custom_vm_args org.greenstone.gatherer.GathererProg -use_remote_greenstone $*
    139150else
    140151    gsdlos=`uname -s | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
     
    146157    echo "Downloading is enabled."
    147158    echo
    148     $javapath -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar:lib/commons-codec-1.3.jar:lib/commons-httpclient-3.1-rc1.jar:lib/commons-logging-1.1.jar org.greenstone.gatherer.GathererProg -use_remote_greenstone -gsdl "$GSDLHOME" -gsdlos $gsdlos $*
     159    $javapath -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar:lib/commons-codec-1.3.jar:lib/commons-httpclient-3.1-rc1.jar:lib/commons-logging-1.1.jar $custom_vm_args org.greenstone.gatherer.GathererProg -use_remote_greenstone -gsdl "$GSDLHOME" -gsdlos $gsdlos $*
    149160fi
    150161
Note: See TracChangeset for help on using the changeset viewer.