Skip to content
This repository was archived by the owner on Aug 26, 2022. It is now read-only.

Commit 515ee95

Browse files
v0.10.1 (fixed problem with lingering process)
1 parent 8b113f9 commit 515ee95

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

APLauncher.pyw

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ class App:
258258
def kill_process(self):
259259
"""Kills the running Minecraft process."""
260260
try:
261-
os.system(f'taskkill /FI "WindowTitle eq Minecraft*" /T /F')
261+
os.system(f'cmd /C taskkill /FI "WindowTitle eq Minecraft*" /T /F')
262262
except:
263263
messagebox.showerror("Error", "Unable to stop the process.")
264264
return
@@ -278,6 +278,7 @@ class App:
278278
json.dump(self.accounts, open(os.path.join(self.minecraftdir, "launcher_profiles.json"), "w"), indent=2)
279279
json.dump(self.cache, open("cache.json", "w"), indent=2)
280280
self.win.withdraw()
281+
os.system(f'cmd /C taskkill /IM APLauncher.exe /T /F')
281282
self.update_version()
282283
sys.exit()
283284

@@ -386,6 +387,9 @@ class App:
386387
sock = server.getsockname()[1]
387388
server.listen()
388389
cmdargs = [
390+
"title",
391+
"launcher_process",
392+
"&&",
389393
"launcher_process",
390394
"-username",
391395
self.username,

0 commit comments

Comments
 (0)