[GRASS-SVN] r68148 - grass/trunk/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Mar 25 07:35:15 PDT 2016


Author: martinl
Date: 2016-03-25 07:35:15 -0700 (Fri, 25 Mar 2016)
New Revision: 68148

Modified:
   grass/trunk/lib/gis/parser.c
Log:
don't launch GUI dialogs from command line when GUI is text (fix when GUI is not defined)


Modified: grass/trunk/lib/gis/parser.c
===================================================================
--- grass/trunk/lib/gis/parser.c	2016-03-25 14:32:39 UTC (rev 68147)
+++ grass/trunk/lib/gis/parser.c	2016-03-25 14:35:15 UTC (rev 68148)
@@ -437,7 +437,7 @@
     gui_envvar = G_getenv_nofatal("GUI");
     if (argc < 2 && (st->has_required || G__has_required_rule())
         && !st->no_interactive && isatty(0) &&
-        G_strcasecmp(gui_envvar, "text") != 0) {
+        (gui_envvar && G_strcasecmp(gui_envvar, "text") != 0)) {
 	if (module_gui_wx() == 0)
             return -1;
     }



More information about the grass-commit mailing list