[GRASS-SVN] r65849 - grass/trunk/lib/init
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Aug 7 12:34:05 PDT 2015
Author: wenzeslaus
Date: 2015-08-07 12:34:05 -0700 (Fri, 07 Aug 2015)
New Revision: 65849
Modified:
grass/trunk/lib/init/grass.py
Log:
init: end immediately when GUI not available
When GUI to select the Location and Mapset is not available (usually because of missing wxPython),
end execution right away instead of trying the text mode. The text mode was not starting anyway when
GRASS was just compiled. When GRASS was installed, it got into a loop with 'Hit RETURN to continue'
(for unknown reasons). User anyway had not specified the Mapset, so there is no point in selecting
the last one used.
Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py 2015-08-07 04:09:05 UTC (rev 65848)
+++ grass/trunk/lib/init/grass.py 2015-08-07 19:34:05 UTC (rev 65849)
@@ -944,16 +944,11 @@
if ret == 0:
pass
elif ret == 1:
- # The startup script printed an error message so wait
- # for user to read it
- message(_("Error in GUI startup. If necessary, please "
- "report this error to the GRASS developers.\n"
- "Switching to text mode now.\n\n"
- "Hit RETURN to continue..."))
- sys.stdin.readline()
-
- os.execlp(cmd_name, "-text")
- sys.exit(1)
+ # formerly we were starting in text mode instead, now we just fail
+ # which is more straightforward for everybody
+ fatal(_("Error in GUI startup. If necessary, please "
+ "report this error to the GRASS developers.\n"
+ "To run GRASS GIS in text mode use -text parameter."))
elif ret == 2:
# User wants to exit from GRASS
message(_("Received EXIT message from GUI.\nGRASS is not started. Bye."))
More information about the grass-commit
mailing list