[GRASS-SVN] r69851 - grass/trunk/lib/init
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Nov 19 16:54:05 PST 2016
Author: wenzeslaus
Date: 2016-11-19 16:54:05 -0800 (Sat, 19 Nov 2016)
New Revision: 69851
Modified:
grass/trunk/lib/init/grass.py
Log:
init: force text/no GUI with -e
Otherwise it prints a warning and requires Enter when
DISPLAY variable is set even when exit is required by -e.
This is useful e.g. in a Docker container where
DISPLAY is not set.
Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py 2016-11-19 11:35:20 UTC (rev 69850)
+++ grass/trunk/lib/init/grass.py 2016-11-20 00:54:05 UTC (rev 69851)
@@ -1873,7 +1873,7 @@
message(_("Starting GRASS GIS..."))
# Ensure GUI is set
- if batch_job:
+ if batch_job or params.exit_grass:
grass_gui = 'text'
else:
if not grass_gui:
More information about the grass-commit
mailing list