Explorar el Código

g.gui.iclass: launch GUI in the background

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57370 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa hace 11 años
padre
commit
441e4075af
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      gui/wxpython/iclass/g.gui.iclass.py

+ 6 - 1
gui/wxpython/iclass/g.gui.iclass.py

@@ -115,4 +115,9 @@ def main():
 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)