Home / Apple / Michael Tsai – Blog – Set default URL handlers

Michael Tsai – Blog – Set default URL handlers



Brent Simmons:

NetNewsWire lets you set the default RSS reader to itself or any other RSS reader. This is an important feature.

Now that we sandbox the app, we lose that feature, like LSSetDefaultHandlerForURLScheme is apparently not allowed for apps with sandbox[…]

This is a good example of how the sandbox still feels half-baked. 9 years later, it has not been documented that this function does not work in apps with sandbox. There is no replacement API, for example that asks the user if it is OK to change the URL manager. The system interface for setting the preferred RSS app has been removed, so the user cannot do it manually.

Was it worth it? Was there an epidemic of URL trader exchanges that we are being protected from? Apps in the Mac App Store need to be sandboxed, and if this API was enabled in the sandbox, it could in theory be polished by the App Review, anyway. Apps outside the Mac App Store do not need to be sandboxed, and there is certainly no malicious software, so the restriction only affects legitimate apps that try to do the right thing ̵

1; something the restriction counteracts.

Quinn:

If you sandbox just because it’s right to do, you should be able to move this call to a non-sandbox XPC service

However, this would not be allowed in the Mac App Store.

Erik Schwiebert:

Outlook used to have a pref like it to set itself as the default email reader. We deleted it when we sandboxed the Mac Office apps, and now administrators are pointing to tools like duti. Not end-user friendly, but I do not know a way around it.

Launch Services Mac Mac App Store macOS 10.15 Catalina Microsoft Outlook NetNewsWire Programming RSS Sandboxing URL XPC

Stay up to date by subscribing to the RSS feed for comments for this post.




Source link