diff --git a/RSCore/Sources/RSCore/AppKit/RSAppMovementMonitor.swift b/RSCore/Sources/RSCore/AppKit/RSAppMovementMonitor.swift index 83c1d49fb..089acb33f 100644 --- a/RSCore/Sources/RSCore/AppKit/RSAppMovementMonitor.swift +++ b/RSCore/Sources/RSCore/AppKit/RSAppMovementMonitor.swift @@ -128,8 +128,11 @@ public class RSAppMovementMonitor: NSObject { func relaunchFromURL(_ appURL: URL) { // Relaunching is best achieved by requesting that the system launch the app // at the given URL with the "new instance" option to prevent it simply reactivating us. - let _ = try? NSWorkspace.shared.launchApplication(at: appURL, options: .newInstance, configuration: [:]) - NSApp.terminate(self) + let configuration = NSWorkspace.OpenConfiguration() + configuration.createsNewApplicationInstance = true + NSWorkspace.shared.openApplication(at: appURL, configuration: configuration) { _,_ in + NSApp.terminate(self) + } } func defaultHandler() {