This has me wondering now, is this is supported behavior?
What is "this"? I think you two might have different concepts of what "works" means in this case.
You can absolutely put a launch daemon executable alongside the main app. That's the default and expected configuration. Making it into an app-like bundle is more complicated. The process seems easy enough but it sure took me a long time and many attempts to get it right.
But that just gives you standard launch daemon behaviour. You may not be getting the TCC and Accessibility behaviours that you're asking about.
This has the disadvantage though of having the helper process and main process have the same name in Activity Monitor, which I think will be confusing to users.
So in short, is there a supported way for a bundled application with its own CFBundleName / CFBundleDisplayName key to run as a launch daemon and also inherit Accessibility permissions from its parent app bundle?
Or is this, and only this, what you're asking about?
If you're happy with the current TCC and Accessibility behaviour, then I recommend you just ignore Activity Monitor. If users vandalize your processes, tell them not to do that or else it won't work. There are tons of duplicate process names in Activity Monitor. Why would they care about yours?
the process of granting permissions in macOS is a mess, so I feel like my bug report would be a lot more comprehensive than that
Again, I think you're talking about different things. That flow and all those barrers aren't bugs. They are by design. They are "the feature". And they're very fragile and often change. They should be tested in any beta or new OS release, no matter how minor. Code defensively.
My recommendation is to focus on your core app features and treat any of those extras that require user assent as "nice to have". Accessibility looks great from a marketing perspective, but you shouldn't depend on it. I have one app that does some of that and it's really annoying. I would greatly prefer if the app were just stand alone didn't nag me with all those accessibility and integration settings. They're broken half the time anyway. And this is a really high-quality app otherwise. These things are almost anti-features.
Topic:
App & System Services
SubTopic:
Core OS
Tags: