[GRASS-SVN] r36097 - grass/trunk/general/g.gui
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Feb 25 08:32:52 EST 2009
Author: hamish
Date: 2009-02-25 08:32:52 -0500 (Wed, 25 Feb 2009)
New Revision: 36097
Modified:
grass/trunk/general/g.gui/main.c
Log:
add debug info (trac #500; merge from devbr6)
Modified: grass/trunk/general/g.gui/main.c
===================================================================
--- grass/trunk/general/g.gui/main.c 2009-02-25 13:26:30 UTC (rev 36096)
+++ grass/trunk/general/g.gui/main.c 2009-02-25 13:32:52 UTC (rev 36097)
@@ -87,8 +87,14 @@
strcmp(gui_type_env, type->answer) != 0) || !gui_type_env) {
G_message(_("<%s> is now the default GUI"), type->answer);
G_setenv("GRASS_GUI", type->answer);
-
}
+ else {
+ if(update->answer)
+ if(gui_type_env) {
+ G_debug(1, "No change: old gui_type_env=[%s], new type->ans=[%s]",
+ gui_type_env, type->answer);
+ }
+ }
if(nolaunch->answer)
exit(EXIT_SUCCESS);
More information about the grass-commit
mailing list