diff --git a/Sparkle/Autoupdate/Autoupdate.m b/Sparkle/Autoupdate/Autoupdate.m index 7a1c72bb..e9c9820c 100644 --- a/Sparkle/Autoupdate/Autoupdate.m +++ b/Sparkle/Autoupdate/Autoupdate.m @@ -187,7 +187,7 @@ static const NSTimeInterval SUInstallationTimeLimit = 5; NSError *error = nil; [[NSWorkspace sharedWorkspace] launchApplicationAtURL:[NSURL fileURLWithPath:relaunchPath] options:NSWorkspaceLaunchNewInstance - configuration:nil + configuration:@{} error:&error]; if (error.code != noErr) { diff --git a/Sparkle/SUBasicUpdateDriver.m b/Sparkle/SUBasicUpdateDriver.m index e267829c..0a54fcf3 100644 --- a/Sparkle/SUBasicUpdateDriver.m +++ b/Sparkle/SUBasicUpdateDriver.m @@ -500,10 +500,10 @@ CF_EXPORT CFDictionaryRef DMCopyHTTPRequestHeaders(CFBundleRef appBundle, CFData if ([updaterDelegate respondsToSelector:@selector(pathToRelaunchForUpdater:)]) { pathToRelaunch = [updaterDelegate pathToRelaunchForUpdater:self.updater]; } - NSArray *arguments = @[[self.host bundlePath] ?: @"", - pathToRelaunch ?: @"", + NSArray *arguments = @[self.host.bundlePath.length ? self.host.bundlePath: @"", + pathToRelaunch.length ? pathToRelaunch : @"", [NSString stringWithFormat:@"%d", [[NSProcessInfo processInfo] processIdentifier]], - self.tempDir ?: @"", + self.tempDir.length ? self.tempDir : @"", relaunch ? @"1" : @"0", showUI ? @"1" : @"0"]; if (SUShouldUseXPCInstaller())