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.
This commit is contained in:
Zorg committed 2016-04-02 12:12:48 -04:00
1 parent 38a69cee5b
commit 116c8ea8b7
1 file changed
+1 -1
+1 -1
View File
@@ -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);