mpanighetti / install-or-defer

A framework for prompting users of Jamf Pro-managed Macs to install Apple software updates.
Apache License 2.0
148 stars 28 forks source link

LaunchDaemon shows as bash in Ventura login Items #91

Closed master-vodawagner closed 2 years ago

master-vodawagner commented 2 years ago

Not sure if its possible or not but a more friendly name for the LaunchDaemon would be great when macOS Ventura rolls out.

Currently the LD shows up as "bash" in System Settings > General > Login Items

mpanighetti commented 2 years ago

Yeah, I'd love to have a better presentation there. I haven't had a chance to play with the macOS Ventura beta much, but from what I've read, I believe that having a better identifier in System Settings requires LaunchDaemons that are bundled with signed apps. That's probably not going to happen with this project considering the general unreliability of managing software updates in modern macOS releases. But I'll keep an eye on Ventura when it eventually launches to see if they give tools to LaunchDaemon writers to sign or better identify their tools in this interface.

mpanighetti commented 2 years ago

Looks like the reason bash is the label is because it's the first entry under ProgramArguments in the LaunchDaemon:

https://github.com/mpanighetti/install-or-defer/blob/1fc6ae619909f75101e4d56491fadf963dc721b7/payload/Library/LaunchDaemons/com.github.mpanighetti.install-or-defer.plist#L7-L11

If we replace the ProgramArguments array with a single Program key pointed at the script, I believe that would change the label, hopefully to use the Label string. Would need to test this in a Ventura install.

mpanighetti commented 2 years ago

@master-vodawagner give #92 a try in your macOS Ventura test environment, let me know how it appears in System Settings > General > Login Items.

mpanighetti commented 2 years ago

Confirmed on my system (macOS 12.6-arm64) that the LaunchDaemon loads normally when the script is called as a Program rather than as ProgramArguments.

mpanighetti commented 2 years ago

Ran Install or Defer 5.0.7 from my branch on macOS 13.0 (22A380) and it now displays a much nicer Install or Defer.sh in Login Items. Merging #92. Thanks for testing!