[GRASS-SVN] r74012 - grass/branches/releasebranch_7_6/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jan 25 02:58:28 PST 2019


Author: neteler
Date: 2019-01-25 02:58:28 -0800 (Fri, 25 Jan 2019)
New Revision: 74012

Modified:
   grass/branches/releasebranch_7_6/lib/init/grass.py
Log:
grass.py: fix r73977 as "grass_gui" var does not exist on headless cloud systems (trunk, r74011)

Modified: grass/branches/releasebranch_7_6/lib/init/grass.py
===================================================================
--- grass/branches/releasebranch_7_6/lib/init/grass.py	2019-01-25 10:57:36 UTC (rev 74011)
+++ grass/branches/releasebranch_7_6/lib/init/grass.py	2019-01-25 10:58:28 UTC (rev 74012)
@@ -726,10 +726,7 @@
         browser = gpath('etc', "html_browser_mac.sh")
 
     if not browser:
-        # no browser msg spam in batch jobs
-        if not grass_gui == 'text':
-            warning(_("Searched for a web browser, but none found"))
-        # even so we set to 'xdg-open' to make lib/gis/parser.c happy:
+        # even so we set to 'xdg-open' as a generic fallback
         browser = "xdg-open"
 
     os.environ['GRASS_HTML_BROWSER'] = browser



More information about the grass-commit mailing list