[GRASS-SVN] r57370 - grass/trunk/gui/wxpython/iclass

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


Author: martinl
Date: 2013-08-02 10:01:48 -0700 (Fri, 02 Aug 2013)
New Revision: 57370

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

Modified: grass/trunk/gui/wxpython/iclass/g.gui.iclass.py
===================================================================
--- grass/trunk/gui/wxpython/iclass/g.gui.iclass.py	2013-08-02 16:38:24 UTC (rev 57369)
+++ grass/trunk/gui/wxpython/iclass/g.gui.iclass.py	2013-08-02 17:01:48 UTC (rev 57370)
@@ -115,4 +115,9 @@
 if __name__ == '__main__':
     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