I customize an open source app (yo), sign it, and deploy it to a bunch of Macs. We've been doing this for almost 4 years and it relies on 2 LaunchAgents that run a python script.
With the move to Ventura, I discovered the background items and that this particular item shows up as 2 "yo_scheduler" items I have now:
- signed the python script
- add AssociatedBundleIdentifiers to the LaunchAgents
- Call LSRegisterUrl as part of the postinstall script
I've packaged all this up, and install it on clients. Based on the documentation, I would anticipate that these 2 items would now show up as "Yo.app" but they don't. They show up as our developer program name.
Based on some discussion with other Mac admins it sounds like we have to register AND open the app before the LaunchAgents are actually installed.
If I install, then run sfltool resetbtm
, then restart the Mac this all shows up properly...
What's the proper way to use legacy LaunchAgents installed by a PKG?
I was wondering the same thing as well. We see this where both our daemon and agent in the "Allow in Background" list in the Ventura System Settings show up as our developer name rather than the application name from 'AssociatedBundleIdentifiers' in the plist files. And, if we register AND open this app before the LaunchAgent and LaunchDaemon are loaded then it works but this is tricky to implement in an installer package.
We're running into similar problems with the app name not being shown in the system settings. Please let us know if you find a solution. How do you call LSRegisterUrl in the postinstall script? Do you have a dedicated binary for that?
We have a similar problem. After adding the AssociatedBundleIdentifiers to the LaunchDaemons' plist files they are at least labeled with the developer name instead as before with something completely unrelated. Then we tried to start the app in the postinstall before loading the LaunchDaemons. Now one item has the name of the app, the other one has still the developer name. It seems the notification banners appear when starting the app, not when loading the LaunchDaemons. Is that possible?