From 116c8ea8b79628a5015373671a5166365b78f114 Mon Sep 17 00:00:00 2001 From: Zorg Date: Sat, 2 Apr 2016 12:12:48 -0400 Subject: [PATCH] Supply NSWorkspaceLaunchNewInstance when launching AutoUpdate I don't think it actually matters since we are launching a copy we created, but sounds like the right thing to do anyway. --- InstallerLauncher/SUInstallerLauncher.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InstallerLauncher/SUInstallerLauncher.m b/InstallerLauncher/SUInstallerLauncher.m index 87843837..f5dc0c07 100644 --- a/InstallerLauncher/SUInstallerLauncher.m +++ b/InstallerLauncher/SUInstallerLauncher.m @@ -25,7 +25,7 @@ } NSError *launchError = nil; - NSRunningApplication *runningApplication = [[NSWorkspace sharedWorkspace] launchApplicationAtURL:[NSURL fileURLWithPath:installerPath] options:NSWorkspaceLaunchDefault configuration:@{NSWorkspaceLaunchConfigurationArguments : arguments} error:&launchError]; + NSRunningApplication *runningApplication = [[NSWorkspace sharedWorkspace] launchApplicationAtURL:[NSURL fileURLWithPath:installerPath] options:(NSWorkspaceLaunchOptions)(NSWorkspaceLaunchDefault | NSWorkspaceLaunchNewInstance) configuration:@{NSWorkspaceLaunchConfigurationArguments : arguments} error:&launchError]; if (runningApplication != nil) { SULog(@"Failed to launch AutoUpdate app with error: %@", launchError);