Feature: disable/enable LoginItems
We currently still need to support to enable/disable login items in Ventura. This would work by:
- Adding it in /var/db/com.apple.xpc.launchd/disabled.*.plist with
<key>NAME</key>\n<true/>to disable. - Adding it in /var/db/com.apple.xpc.launchd/disabled.*.plist with
<key>NAME</key>\n<false/>to disable.
I think this is the issue I'm running into when trying to disable a startup item:
$ maclaunch disable com.wiheads.paste-setapp-LaunchAtLoginHelper
/opt/homebrew/bin/maclaunch: line 608: disableLoginItems: command not found
Just wanted to add it for context. Thanks!
I noticed that disableLoginItems was added in the following commit, but there hasn't been an accompanying function for it. I searched google for the command/function and nothing shows up.
https://github.com/hazcod/maclaunch/commit/eb91b579651f419652430db159fabcbe9476ab19
The function left unimplemented so that it would throw an error until this is implemented thus fixing it?
Yes, indeed. This issue is specifically about implementing that function.