2 #---------------------------------------------
3 # Script to start GeoGebra
4 #---------------------------------------------
6 #---------------------------------------------
7 # Define usage function
12 Usage: geogebra [Java-options] [GeoGebra-options] [FILE]
14 GeoGebra - Dynamic mathematics software
17 -Xms<size> Set initial Java heap size
18 -Xmx<size> Set maximum Java heap size
21 --help Show this help message
22 --language=<iso_code> Set language using locale code, e.g. en, de_AT
23 --showAlgebraInput=<boolean> Show/hide algebra input field
24 --showAlgebraWindow=<boolean> Show/hide algebra window
25 --showSpreadsheet=<boolean> Show/hide spreadsheet
26 --fontSize=<number> Set default font size
27 --showSplash=<boolean> Enable/disable the splash screen
28 --enableUndo=<boolean> Enable/disable Undo
29 --CAS=[Maxima|MathPiper] Set Maxima/MathPiper as CAS engine
30 --maximaPath=<path> Set path to locally installed version of Maxima
34 #---------------------------------------------
35 # Check for option --help and pass memory options to Java, others to GeoGebra
39 --help |
--hel |
--he |
--h )
42 if [ $
(expr match
"$i" '.*-Xm') -ne 0 ]; then
43 if [ -z "$JAVA_OPTS" ]; then
46 JAVA_OPTS
="$JAVA_OPTS $i"
50 if [ $
(expr match
"$i" '.*--') -ne 0 ]; then
51 if [ -z "$GG_OPTS" ]; then
61 #---------------------------------------------
62 # If memory not set, change to GeoGebra defaults
64 if [ $
(expr match
"$JAVA_OPTS" '.*-Xmx') -eq 0 ]; then
65 JAVA_OPTS
="$JAVA_OPTS -Xmx512m"
67 if [ $
(expr match
"$JAVA_OPTS" '.*-Xms') -eq 0 ]; then
68 JAVA_OPTS
="$JAVA_OPTS -Xms32m"
71 #---------------------------------------------
74 exec java
$JAVA_OPTS -jar "/usr/share/java/geogebra/geogebra.jar" --CAS=Maxima
$GG_OPTS "$@"