From ea07f716b8c02bbef755c5993623ef7c22d2a5b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kornel=20Lesin=CC=81ski?= Date: Wed, 22 Apr 2015 23:45:03 +0100 Subject: [PATCH] Revert "Register update with Launch Services; see #508" This reverts commit a7d11f88c7c5e6378d69670a63fe2619aadb73b9. Fixes #525 --- Sparkle/SUInstaller.m | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Sparkle/SUInstaller.m b/Sparkle/SUInstaller.m index 4e60ade7..7b75194d 100644 --- a/Sparkle/SUInstaller.m +++ b/Sparkle/SUInstaller.m @@ -162,24 +162,10 @@ static NSString *sUpdateFolder = nil; } } -+ (void)registerWithLaunchServices:(NSString *)installationPath -{ - NSURL* installationURL = [NSURL fileURLWithPath:installationPath]; - if (installationURL != nil) - { - OSStatus registerStatus = LSRegisterURL((__bridge CFURLRef)installationURL,true); - if (registerStatus != noErr) - { - SULog(@"Error: LSRegisterURL returned %d", registerStatus); - } - } -} - + (void)finishInstallationToPath:(NSString *)installationPath withResult:(BOOL)result host:(SUHost *)host error:(NSError *)error delegate:(id)delegate { if (result) { - [self registerWithLaunchServices:installationPath]; [self mdimportInstallationPath:installationPath]; if ([delegate respondsToSelector:@selector(installerFinishedForHost:)]) { dispatch_async(dispatch_get_main_queue(), ^{