maclaunch icon indicating copy to clipboard operation
maclaunch copied to clipboard

Feature: disable/enable LoginItems

Open hazcod opened this issue 3 years ago • 3 comments

We currently still need to support to enable/disable login items in Ventura. This would work by:

  1. Adding it in /var/db/com.apple.xpc.launchd/disabled.*.plist with <key>NAME</key>\n<true/> to disable.
  2. Adding it in /var/db/com.apple.xpc.launchd/disabled.*.plist with <key>NAME</key>\n<false/> to disable.

hazcod avatar Nov 15 '22 08:11 hazcod

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!

masonc15 avatar Dec 20 '22 16:12 masonc15

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?

ctsstc avatar Aug 20 '24 07:08 ctsstc

Yes, indeed. This issue is specifically about implementing that function.

hazcod avatar Aug 20 '24 09:08 hazcod