瀏覽代碼

g.gui.dbmgr: launch GUI in the background

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57372 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 年之前
父節點
當前提交
152c3dfcf3
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      gui/wxpython/dbmgr/g.gui.dbmgr.py

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

@@ -60,4 +60,9 @@ 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)