Skip to content

Commit

Permalink
Removing code that doesn't work on 10.10
Browse files Browse the repository at this point in the history
  • Loading branch information
kerma committed Apr 7, 2015
1 parent 148d863 commit ba806ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Binary file modified build/defaultbrowser
Binary file not shown.
8 changes: 1 addition & 7 deletions defaultbrowser/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,8 @@ int main(int argc, const char * argv[])
if ([handlers valueForKey:[set lowercaseString]] != nil) {
CFStringRef newHandler = (__bridge CFStringRef)([handlers valueForKey:[set lowercaseString]]);
for (NSString *urlschemeref in urlschemerefs) {
OSStatus s = LSSetDefaultHandlerForURLScheme((__bridge CFStringRef)(urlschemeref), newHandler);
if (s != 0) {
printf("Setting a new default browser failed\n");
return 1;
}
LSSetDefaultHandlerForURLScheme((__bridge CFStringRef)(urlschemeref), newHandler);
}
printf("New default browser: %s\n", [set cStringUsingEncoding:NSUTF8StringEncoding]);

} else {
printf("%s is not available as a HTTP browser\n", [set cStringUsingEncoding:NSUTF8StringEncoding]);
printf("Available browsers:\n");
Expand Down

0 comments on commit ba806ea

Please sign in to comment.