[GRASS-SVN] r41141 - grass/trunk/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Feb 21 01:41:19 EST 2010


Author: hamish
Date: 2010-02-21 01:41:18 -0500 (Sun, 21 Feb 2010)
New Revision: 41141

Modified:
   grass/trunk/lib/init/functions.sh
Log:
minor clean

Modified: grass/trunk/lib/init/functions.sh
===================================================================
--- grass/trunk/lib/init/functions.sh	2010-02-21 04:37:13 UTC (rev 41140)
+++ grass/trunk/lib/init/functions.sh	2010-02-21 06:41:18 UTC (rev 41141)
@@ -428,7 +428,7 @@
 gui_startup()
 {
     if [ "$GRASS_GUI" = "wxpython" ] ; then
-		# eval `foo` will return subshell return code and not app foo return code!!!
+	# eval `foo` will return subshell return code and not app foo return code!!!?
 	eval '"$GRASS_PYTHON" "$WXPYTHONGRASSBASE/gis_set.py"'
 	thetest=$?
     fi
@@ -587,19 +587,15 @@
 
 start_gui()
 {
-    # Start the chosen GUI but ignore text
+    # Start the chosen GUI, or if in text-mode, don't.
     if [ "$GRASS_DEBUG" -ne 0 ] ; then
-       echo "GRASS GUI should be $GRASS_GUI"
+       echo "GRASS GUI is <$GRASS_GUI>"
     fi
     
     case "$GRASS_GUI" in
-        
-        # Check for gui interface
         wxpython)
-            eval '"$GRASS_PYTHON" "$GISBASE/etc/wxpython/wxgui.py" &'
-#            "$GISBASE/etc/wxpython/wxgui.py"
+            "$GRASS_PYTHON" "$GISBASE/etc/wxpython/wxgui.py" &
             ;;
-    
         # Ignore others
         *)
             ;;



More information about the grass-commit mailing list