[GRASS-SVN] r66913 - grass/trunk/general/g.gui
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Nov 24 07:47:13 PST 2015
Author: martinl
Date: 2015-11-24 07:47:13 -0800 (Tue, 24 Nov 2015)
New Revision: 66913
Modified:
grass/trunk/general/g.gui/main.c
Log:
g.gui: ends with fatal error, when GUI is not available
Modified: grass/trunk/general/g.gui/main.c
===================================================================
--- grass/trunk/general/g.gui/main.c 2015-11-24 15:42:25 UTC (rev 66912)
+++ grass/trunk/general/g.gui/main.c 2015-11-24 15:47:13 UTC (rev 66913)
@@ -102,6 +102,9 @@
}
sprintf(progname, "%s/gui/wxpython/wxgui.py", G_gisbase());
+ if (access(progname, F_OK) == -1)
+ G_fatal_error(_("Your installation doesn't include GUI, exiting."));
+
if (fglaunch->answer) {
G_message(_("Launching <%s> GUI, please wait..."), type->answer);
if (rc_file->answer) {
More information about the grass-commit
mailing list