mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-24 20:10:14 +10:00
GUI: Fix launch errors when run from update directory
This commit is contained in:
@@ -136,7 +136,7 @@ class UpdateFrame(wx.Frame):
|
|||||||
while thread.is_alive():
|
while thread.is_alive():
|
||||||
wx.Yield()
|
wx.Yield()
|
||||||
|
|
||||||
timer = 5
|
timer = 8
|
||||||
while True:
|
while True:
|
||||||
launch_label.SetLabel(f"Closing old process in {timer} seconds")
|
launch_label.SetLabel(f"Closing old process in {timer} seconds")
|
||||||
launch_label.Center(wx.HORIZONTAL)
|
launch_label.Center(wx.HORIZONTAL)
|
||||||
@@ -237,4 +237,4 @@ EOF
|
|||||||
def _launch_update(self):
|
def _launch_update(self):
|
||||||
# Launch update
|
# Launch update
|
||||||
logging.info("Launching update: '/Library/Application Support/Dortania/OpenCore-Patcher.app'")
|
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"])
|
||||||
|
|||||||
Reference in New Issue
Block a user