2

I have something like:

LSSetDefaultHandlerForURLScheme((__bridge CFStringRef)(urlschemeref), newHandler);

Up to OS X 10.9 it worked nicely and set the default URL handler to whatever I had in newHandler.

In Yosemite, Apple introduced a "security feature": a dialog box is displayed to user to confirm the change. Something like this:

Do you want to change your default web browser to "Safari" or keep using "Chrome"?

I know it's a bit far fetched, but maybe there is a way to suppress or "accept" that programmatically?

Or is there a better way to set URLScheme handlers in a headless context?

georgebrock
  • 28,393
  • 13
  • 77
  • 72
kerma
  • 2,593
  • 2
  • 17
  • 16

0 Answers0