[GRASS-SVN] r57375 - grass/trunk/gui/wxpython/mapswipe

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


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

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


Modified: grass/trunk/gui/wxpython/mapswipe/g.gui.mapswipe.py
===================================================================
--- grass/trunk/gui/wxpython/mapswipe/g.gui.mapswipe.py	2013-08-02 17:07:38 UTC (rev 57374)
+++ grass/trunk/gui/wxpython/mapswipe/g.gui.mapswipe.py	2013-08-02 17:10:23 UTC (rev 57375)
@@ -103,5 +103,8 @@
 
 
 if __name__ == '__main__':
-    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