Explorar el Código

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.


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@69851 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras hace 8 años
padre
commit
147898569d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/init/grass.py

+ 1 - 1
lib/init/grass.py

@@ -1873,7 +1873,7 @@ def main():
         message(_("Starting GRASS GIS..."))
         message(_("Starting GRASS GIS..."))
 
 
     # Ensure GUI is set
     # Ensure GUI is set
-    if batch_job:
+    if batch_job or params.exit_grass:
         grass_gui = 'text'
         grass_gui = 'text'
     else:
     else:
         if not grass_gui:
         if not grass_gui: