Hacker News new | ask | show | jobs
by p0deje 1 day ago
Maccy [1] author here. For the past 8 years as I work on open source clipboard manager, it’s been very hard to explain how to grant accessibility permissions to non-technical users. Maccy only needs it for simulating Cmd+V key combination, since macOS has no API to paste clipboard contents - nothing else. Still, there is this one permission to ask for, even if you use a fraction of its capabilities. I expect more user complaints and support requests since 27.3

[1]: https://github.com/p0deje/Maccy

3 comments

This is the central frustration with Apple. They provide basically no granular APIs in a lot of areas. And a couple enormous ones that amount to a nuclear option. Use A11y to control the gui, or use Full Disk Access to get at some file you need. Then they wave their hands with scary warnings when anyone uses those only two ways to accomplish these goals.
The reason there’s no API for this is because malicious apps will (not can; will and have) use programmatic pasteboard access to harvest passwords, credit card numbers, and anything else.
Sure, but instead of granting full UI automation privileges to, say, a clipboard manager, wouldn't it be cool if it could request a privilege of "receiving a copy of everything you copy while the application is open" and of "the pasting of arbitrary content into the focused application"?

Or alternatively, if an app is requesting a11y permissions purely to simulate Cmd-V, it could register that as what it proposes to do, and any request to do anything other than pretend to Cmd-V wouldn't work.

Also, there should be but isn't an ability to say that a certain app is not allowed to have network access of any kind.

If an app were sandboxed, denied any network access, and granted those narrow permissions, it could be an extremely harmless clipboard manager. Instead clipboard managers have to be allowed far more extreme capabilities, or they cannot exist.

Pasteboard is already accessible for all apps without any extra permissions :). Unless you are referring to CMD+V operation which requires "Accessibility" permission.
Apple has been adding restrictions to programmatic pasteboard access, especially on iOS.
True, on iOS there's a prompt, but not on macOS.
Thanks for building this fantastic app! Maccy is one of those pieces of software that’s become such a fundamental part of my muscle memory that I don’t know how I ever functioned without it :)
That's exactly my point in the article. The lack of granular permission system on macOS is a big issue. Instead of fixing it, they decided to burry the problem with a big scary warning. This is the new modern Apple design approach.

I'm facing a similar problem in my Snippety app [1]. I would be happy to give users more options, for example the user could only allow the app to simulate CMD+V but without monitoring key strokes, but currently it's all or nothing.

On top of that, starting with 27.3, users will be informed that my app will be able to access their bank accounts xD... And the warning requires them to click "OK" next to it, as if I were the one requesting it and as if they were actually okay with that... Insanity.

[1]: https://snippety.app