DEV Community

Discussion on: Controlling photoanalysisd

Collapse
 
naryfa profile image
naryfa • Edited

I've been pulling my hair to figure this out with Amazon Music Helper. Launchctl disable user/$UID/username/Library/LaunchAgents/com.some.service.plist just doesn't do anything. I know there are three domains (system, gui and user). But it's not yielding anything no matter how I try it.

Your way of doing it will work for some apps, but not for others. For example Amazon Music Helper will be recreated the moment you move it.

The only solution I found was to edit the ~/Library/LaunchAgents/com.amazon.music.plist file itself by setting:

<key>KeepAlive</key>
<false/>

<key>RunAtLoad</key>
<false/>

Then saving the file and locking it by:

sudo chflags uchg ~/Library/LaunchAgents/com.amazon.music.plist

(to unlock back swap uchg for nouchg)

However, I still want to know how to properly disable the service since there are others that I want disabled as well. It must be doable by hand somehow!


Edit:

It seems to be enough to amend the plist file at the beginning with:

<key>Disabled</key>
</true>

I guess locking the file afterwards won't hurt.