[GRASS-SVN] r39283 - grass/trunk/general/g.gui
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Sep 22 11:13:29 EDT 2009
Author: hamish
Date: 2009-09-22 11:13:28 -0400 (Tue, 22 Sep 2009)
New Revision: 39283
Modified:
grass/trunk/general/g.gui/main.c
Log:
background the GUI (merge from devbr6)
Modified: grass/trunk/general/g.gui/main.c
===================================================================
--- grass/trunk/general/g.gui/main.c 2009-09-22 15:10:08 UTC (rev 39282)
+++ grass/trunk/general/g.gui/main.c 2009-09-22 15:13:28 UTC (rev 39283)
@@ -106,13 +106,18 @@
if (strcmp(type->answer, "wxpython") == 0) {
sprintf(progname, "%s/etc/wxpython/wxgui.py", G_gisbase());
if (rc_file->answer) {
- G_spawn(getenv("GRASS_PYTHON"), "wxgui", progname, "--workspace",
- rc_file->answer, NULL);
+ G_spawn_ex(getenv("GRASS_PYTHON"), "wxgui", progname,
+ "--workspace", rc_file->answer, SF_BACKGROUND, NULL);
}
else {
- G_spawn(getenv("GRASS_PYTHON"), "wxgui", progname, NULL);
+ G_spawn_ex(getenv("GRASS_PYTHON"), "wxgui", progname,
+ SF_BACKGROUND, NULL);
}
}
+ /* stop the impatient from starting it again
+ before the splash screen comes up */
+ G_sleep(3);
+
exit(EXIT_SUCCESS);
}
More information about the grass-commit
mailing list