Browse Source

g.gui.rlisetup: launch GUI in the background

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

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

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