From bc2cad39e5e9d5b55cfe1a290ae7954f1ebf4c7f Mon Sep 17 00:00:00 2001 From: Red-exe-Engineer <90420989+Red-exe-Engineer@users.noreply.github.com> Date: Fri, 11 Mar 2022 21:55:36 -0600 Subject: [PATCH 1/3] Update launcher.py Make the launcher wait until the game is closed after launch --- planet/launcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planet/launcher.py b/planet/launcher.py index 4ccf157..f88c277 100644 --- a/planet/launcher.py +++ b/planet/launcher.py @@ -67,4 +67,4 @@ def set_options(env, options: dict): def run(env): return subprocess.Popen( ["/usr/bin/minecraft-pi-reborn-client"], env=env, preexec_fn=os.setsid - ) + ).wait() From 21d08b5d43e48a0f2152237affe9c1edf7b6381e Mon Sep 17 00:00:00 2001 From: Red-exe-Engineer <90420989+Red-exe-Engineer@users.noreply.github.com> Date: Fri, 11 Mar 2022 21:58:33 -0600 Subject: [PATCH 2/3] Update main.py Make the launcher only hide is self.showlauncher.isChecked() is True --- planet/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/planet/main.py b/planet/main.py index 031adc6..4c75fab 100644 --- a/planet/main.py +++ b/planet/main.py @@ -263,7 +263,8 @@ class Planet(QMainWindow): print(self.env) self.hide() - launcher.run(self.env) + if self.showlauncher.isChecked() == True: + launcher.run(self.env) self.show() From 93b601aa38a6753728b1d68e34fb052071ce2fa2 Mon Sep 17 00:00:00 2001 From: Red-exe-Engineer <90420989+Red-exe-Engineer@users.noreply.github.com> Date: Sat, 12 Mar 2022 12:48:28 -0600 Subject: [PATCH 3/3] Fix what happens when you click launch --- planet/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/planet/main.py b/planet/main.py index 4c75fab..174f2bf 100644 --- a/planet/main.py +++ b/planet/main.py @@ -262,9 +262,9 @@ class Planet(QMainWindow): ) print(self.env) - self.hide() if self.showlauncher.isChecked() == True: - launcher.run(self.env) + self.hide() + launcher.run(self.env) self.show()