[GRASS-SVN] r32783 - grass/branches/develbranch_6/general/g.gui

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Aug 15 11:28:58 EDT 2008


Author: martinl
Date: 2008-08-15 11:28:58 -0400 (Fri, 15 Aug 2008)
New Revision: 32783

Modified:
   grass/branches/develbranch_6/general/g.gui/main.c
Log:
g.gui: set gui_type_env properly

Modified: grass/branches/develbranch_6/general/g.gui/main.c
===================================================================
--- grass/branches/develbranch_6/general/g.gui/main.c	2008-08-15 15:25:01 UTC (rev 32782)
+++ grass/branches/develbranch_6/general/g.gui/main.c	2008-08-15 15:28:58 UTC (rev 32783)
@@ -59,8 +59,9 @@
     if (argc > 1 && 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