Browse Source

g.gui.psmap: launch GUI in the background

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57378 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 năm trước cách đây
mục cha
commit
8255170909
1 tập tin đã thay đổi với 7 bổ sung1 xóa
  1. 7 1
      gui/wxpython/psmap/g.gui.psmap.py

+ 7 - 1
gui/wxpython/psmap/g.gui.psmap.py

@@ -64,4 +64,10 @@ def main():
 
 if __name__ == "__main__":
     options, flags = grass.parser()
-    main()
+    
+    # launch GUI in the background
+    child_pid = os.fork()
+    if child_pid == 0:
+        main()
+    os._exit(0)
+