From 340633fd7963d9c35c59ad62e7e68babf985473e Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 3 Jul 2016 11:54:28 -0400 Subject: [PATCH] Comment more on why launching Autoupdate with LaunchServices is necessary --- InstallerLauncher/SUInstallerLauncher.m | 1 + 1 file changed, 1 insertion(+) diff --git a/InstallerLauncher/SUInstallerLauncher.m b/InstallerLauncher/SUInstallerLauncher.m index 5bcae2c6..e9d95c9e 100644 --- a/InstallerLauncher/SUInstallerLauncher.m +++ b/InstallerLauncher/SUInstallerLauncher.m @@ -29,6 +29,7 @@ if (!inheritingPrivileges) { // This new process does not inherit privileges because it's being launched via LaunchServices // This allows the installer app to make authorization requests for example from a non-sandboxed XPC service + // From testing I have found this is necessary if the entirety of Sparkle's framework is inside a XPC service NSError *launchError = nil; NSRunningApplication *runningApplication = [[NSWorkspace sharedWorkspace] launchApplicationAtURL:[NSURL fileURLWithPath:installerPath] options:(NSWorkspaceLaunchOptions)(NSWorkspaceLaunchDefault | NSWorkspaceLaunchNewInstance) configuration:@{NSWorkspaceLaunchConfigurationArguments : arguments} error:&launchError];