[GRASS-SVN] r57377 - grass/trunk/gui/wxpython/vdigit

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Aug 2 10:10:52 PDT 2013


Author: martinl
Date: 2013-08-02 10:10:52 -0700 (Fri, 02 Aug 2013)
New Revision: 57377

Modified:
   grass/trunk/gui/wxpython/vdigit/g.gui.vdigit.py
Log:
g.gui.vdigit: launch GUI in the background


Modified: grass/trunk/gui/wxpython/vdigit/g.gui.vdigit.py
===================================================================
--- grass/trunk/gui/wxpython/vdigit/g.gui.vdigit.py	2013-08-02 17:10:37 UTC (rev 57376)
+++ grass/trunk/gui/wxpython/vdigit/g.gui.vdigit.py	2013-08-02 17:10:52 UTC (rev 57377)
@@ -93,4 +93,8 @@
     grass.set_raise_on_error(False)
     options, flags = grass.parser()
     
-    main()
+    # launch GUI in the background
+    child_pid = os.fork()
+    if child_pid == 0:
+        main()
+    os._exit(0)



More information about the grass-commit mailing list