[GRASS-SVN] r32784 - grass/trunk/general/g.gui

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Aug 15 12:11:43 EDT 2008


Author: martinl
Date: 2008-08-15 12:11:43 -0400 (Fri, 15 Aug 2008)
New Revision: 32784

Modified:
   grass/trunk/general/g.gui/main.c
Log:
g.gui: set gui_type_env properly
(merge from devbr6, r32783)


Modified: grass/trunk/general/g.gui/main.c
===================================================================
--- grass/trunk/general/g.gui/main.c	2008-08-15 15:28:58 UTC (rev 32783)
+++ grass/trunk/general/g.gui/main.c	2008-08-15 16:11:43 UTC (rev 32784)
@@ -59,8 +59,9 @@
     if (G_parser(argc, argv))
 	exit(EXIT_FAILURE);
 
+    gui_type_env = G__getenv("GRASS_GUI");
+    
     if (!type->answer) {
-	gui_type_env = G__getenv("GRASS_GUI");
 	if (gui_type_env && strcmp(gui_type_env, "text")) {
 	    type->answer = G_store(gui_type_env);
 	}



More information about the grass-commit mailing list