mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-28 05:14:34 +00:00
Comment more on why launching Autoupdate with LaunchServices is necessary
This commit is contained in:
1 parent
a615703883
commit
340633fd79
1 file changed
+1
@@ -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];
|
||||
|
||||
|
||||
Reference in new issue
Block a user