LSSetDefaultRoleHandlerForContentType in Yosemite

I am having a problem with the CF LSSetDefaultRoleHandlerForContentType function. This feature sets the application as the default viewer for the UTI type. In 10.9 it works without issue, but in the latest 10.10 build it doesn't work with return code -54. The doc and related forums did not help. All I have found about the problem is that -54 means permErr (Permission Error?) And that's it.

Perhaps someone experienced this problem and can help with some workaround? Thanks in advance!


source to share

1 answer

As of OS X 10.10, Yosemite LSSetDefaultRoleHandlerForContentType

no longer works / is not allowed in sandboxed applications.

Check out this post in the Apples Application Sandboxing forum .

Also notice the console output when you try to use it:

coreservicesd: Unentitled request to set default handler for content type com.adobe.pdf by pid 31361




All Articles