Browse Source

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 years ago
parent
commit
152c3dfcf3
1 changed files with 6 additions and 1 deletions
  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)