From 99934360290fd969a5203b9b72b8c334d3ae4a11 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Sun, 14 May 2023 23:06:18 -0600 Subject: [PATCH] GUI: Fix launch errors when run from update directory --- resources/wx_gui/gui_update.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/wx_gui/gui_update.py b/resources/wx_gui/gui_update.py index 91a1b3648..043de879c 100644 --- a/resources/wx_gui/gui_update.py +++ b/resources/wx_gui/gui_update.py @@ -136,7 +136,7 @@ class UpdateFrame(wx.Frame): while thread.is_alive(): wx.Yield() - timer = 5 + timer = 8 while True: launch_label.SetLabel(f"Closing old process in {timer} seconds") launch_label.Center(wx.HORIZONTAL) @@ -237,4 +237,4 @@ EOF def _launch_update(self): # Launch update logging.info("Launching update: '/Library/Application Support/Dortania/OpenCore-Patcher.app'") - subprocess.Popen(["open", "/Library/Application Support/Dortania/OpenCore-Patcher.app"]) + subprocess.Popen(["/Library/Application Support/Dortania/OpenCore-Patcher.app/Contents/MacOS/OpenCore-Patcher"])