We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8009446 commit 81d204aCopy full SHA for 81d204a
1 file changed
MistServerManager.swift
@@ -639,10 +639,10 @@ class MistServerManager {
639
return
640
}
641
642
- // Relaunch new version
643
- let executablePath = currentApp + "/Contents/MacOS/MistTray"
+ // Relaunch via open(1) for proper LaunchServices handling
644
let relaunchTask = Process()
645
- relaunchTask.executableURL = URL(fileURLWithPath: executablePath)
+ relaunchTask.executableURL = URL(fileURLWithPath: "/bin/sh")
+ relaunchTask.arguments = ["-c", "sleep 1 && open '\(currentApp)'"]
646
try? relaunchTask.run()
647
648
DispatchQueue.main.async { completion(true) }
0 commit comments