Parcourir la source

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 il y a 8 ans
Parent
commit
147898569d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      lib/init/grass.py

+ 1 - 1
lib/init/grass.py

@@ -1873,7 +1873,7 @@ def main():
         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: