Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Mac disables "Setapp CleanMyMac-setapp.HealthMonitor" launchd services

sudo vim /private/var/db/launchd.db/com.apple.launchd/overrides.plist

Add the following code,as entries like:

<key>com.macpaw.CleanMyMac-setapp.HealthMonitor</key>
<dict>
<key>Disabled</key>
<true/>
</dict>
@rlam3
Copy link
Author

rlam3 commented Aug 21, 2019

Hahaha, this way seems to have expired. Can be handled in another way (setapp CleanMyMac as an example):

Remove CleanMyMac X HealthMonitor.app
Rm -rf ~/Library/Application Support/CleanMyMac Setapp/CleanMyMac X HealthMonitor.app

Add a read-only permission to CleanMyMac X HealthMonitor.app
Mkdir ~/Library/Application Support/CleanMyMac Setapp/CleanMyMac X HealthMonitor.app
Chmod 444 ~/Library/Application Support/CleanMyMac Setapp/CleanMyMac X HealthMonitor.app

Reference:

https://segmentfault.com/a/1190000017126858

@ffontcl
Copy link

ffontcl commented Sep 9, 2020

This work for me.
Go to: /Applications/CleanMyMac X.app/Contents/Library/LoginItems/CleanMyMac X Menu.app/Contents/Library/LoginItems/CleanMyMac X HealthMonitor.app/Contents/MacOS/CleanMyMac X HealthMonitor
Then add to CleanMyMac X HealthMonitor '.old'
Last, in activity monitor force quit CleanMyMac X HealthMonitor

@qiwang97
Copy link

qiwang97 commented Sep 15, 2020

This work for me.
Go to: /Applications/CleanMyMac X.app/Contents/Library/LoginItems/CleanMyMac X Menu.app/Contents/Library/LoginItems/CleanMyMac X HealthMonitor.app/Contents/MacOS/CleanMyMac X HealthMonitor
Then add to CleanMyMac X HealthMonitor '.old'
Last, in activity monitor force quit CleanMyMac X HealthMonitor

It works and all above do not work

@necival85
Copy link

necival85 commented Sep 29, 2020

This work for me.
Go to: /Applications/CleanMyMac X.app/Contents/Library/LoginItems/CleanMyMac X Menu.app/Contents/Library/LoginItems/CleanMyMac X HealthMonitor.app/Contents/MacOS/CleanMyMac X HealthMonitor
Then add to CleanMyMac X HealthMonitor '.old'
Last, in activity monitor force quit CleanMyMac X HealthMonitor

Same as @qiwang97, this is the only solution that worked for me.

@qiwang97
Copy link

qiwang97 commented Sep 29, 2020

It really worked but I find it restarts. I don't know if it's because of rebooting or updating my Mac.
Lark20200929115854

@necival85
Copy link

necival85 commented Sep 29, 2020

I use Terminal a lot, so I added this to my ~/.profile (which is loaded on every Terminal window):

if [ -f "/Applications/CleanMyMac X.app/Contents/Library/LoginItems/CleanMyMac X Menu.app/Contents/Library/LoginItems/CleanMyMac X HealthMonitor.app/Contents/MacOS/CleanMyMac X HealthMonitor" ]; then
  mv -v "/Applications/CleanMyMac X.app/Contents/Library/LoginItems/CleanMyMac X Menu.app/Contents/Library/LoginItems/CleanMyMac X HealthMonitor.app/Contents/MacOS/CleanMyMac X HealthMonitor" "/Applications/CleanMyMac X.app/Contents/Library/LoginItems/CleanMyMac X Menu.app/Contents/Library/LoginItems/CleanMyMac X HealthMonitor.app/Contents/MacOS/CleanMyMac X HealthMonitor.old"
fi

@nanogp
Copy link

nanogp commented Oct 26, 2020

I use Terminal a lot, so I added this to my ~/.profile (which is loaded on every Terminal window):

if [ -f "/Applications/CleanMyMac X.app/Contents/Library/LoginItems/CleanMyMac X Menu.app/Contents/Library/LoginItems/CleanMyMac X HealthMonitor.app/Contents/MacOS/CleanMyMac X HealthMonitor" ]; then
  mv -v "/Applications/CleanMyMac X.app/Contents/Library/LoginItems/CleanMyMac X Menu.app/Contents/Library/LoginItems/CleanMyMac X HealthMonitor.app/Contents/MacOS/CleanMyMac X HealthMonitor" "/Applications/CleanMyMac X.app/Contents/Library/LoginItems/CleanMyMac X Menu.app/Contents/Library/LoginItems/CleanMyMac X HealthMonitor.app/Contents/MacOS/CleanMyMac X HealthMonitor.old"
fi

Hi! Your approach is the only method that would work, for my version at least (4.6.14)
But what I did instead was putting the binary into a zip, which I find less invasive and redundant than editing .profile to test everytime if the file still exists.
Here's the cmdline if you fancy using it once and forever (as long as background protection setting is disabled):
cd /Applications/CleanMyMac\ X.app/Contents/Library/LoginItems/CleanMyMac\ X\ Menu.app/Contents/Library/LoginItems/CleanMyMac\ X\ HealthMonitor.app/Contents/MacOS/; zip -m disabled.zip

Thanx for the help!!

@necival85
Copy link

necival85 commented Oct 26, 2020

No problem. Yea, the reason I have it in my ~/.profile is that I found that the file comes back every time that CleanMyMac updates.

@backslash-f
Copy link

backslash-f commented Nov 10, 2020

I use Terminal a lot, so I added this to my ~/.profile (which is loaded on every Terminal window):

if [ -f "/Applications/CleanMyMac X.app/Contents/Library/LoginItems/CleanMyMac X Menu.app/Contents/Library/LoginItems/CleanMyMac X HealthMonitor.app/Contents/MacOS/CleanMyMac X HealthMonitor" ]; then
  mv -v "/Applications/CleanMyMac X.app/Contents/Library/LoginItems/CleanMyMac X Menu.app/Contents/Library/LoginItems/CleanMyMac X HealthMonitor.app/Contents/MacOS/CleanMyMac X HealthMonitor" "/Applications/CleanMyMac X.app/Contents/Library/LoginItems/CleanMyMac X Menu.app/Contents/Library/LoginItems/CleanMyMac X HealthMonitor.app/Contents/MacOS/CleanMyMac X HealthMonitor.old"
fi

Perfect, thanks for sharing.

@mingliii
Copy link

mingliii commented Nov 24, 2020

This work for me.
Go to: /Applications/CleanMyMac X.app/Contents/Library/LoginItems/CleanMyMac X Menu.app/Contents/Library/LoginItems/CleanMyMac X HealthMonitor.app/Contents/MacOS/CleanMyMac X HealthMonitor
Then add to CleanMyMac X HealthMonitor '.old'
Last, in activity monitor force quit CleanMyMac X HealthMonitor

Works for me

@yexuhui17
Copy link

yexuhui17 commented Dec 11, 2020

This work for me.
Go to: /Applications/CleanMyMac X.app/Contents/Library/LoginItems/CleanMyMac X Menu.app/Contents/Library/LoginItems/CleanMyMac X HealthMonitor.app/Contents/MacOS/CleanMyMac X HealthMonitor
Then add to CleanMyMac X HealthMonitor '.old'
Last, in activity monitor force quit CleanMyMac X HealthMonitor

Works for me too. Thanks~

@maao666
Copy link

maao666 commented Dec 13, 2020

This work for me.
Go to: /Applications/CleanMyMac X.app/Contents/Library/LoginItems/CleanMyMac X Menu.app/Contents/Library/LoginItems/CleanMyMac X HealthMonitor.app/Contents/MacOS/CleanMyMac X HealthMonitor
Then add to CleanMyMac X HealthMonitor '.old'
Last, in activity monitor force quit CleanMyMac X HealthMonitor

This works for me! Removing the entire folder of CleanMyMac X HealthMonitor.app would cause problems, but removing the executable file seems great.

@mritd
Copy link

mritd commented Dec 15, 2020

After reading some documents, I found the best practice:

The detailed service-target format is given in the document https://developer.apple.com/forums/thread/16206:

service-target = domain-target/service-name
domain-target = gui/$UID or user/$UID
service-name can be obtained by executing the launchctl list | grep macpaw command

In the end just need to disable them via launchctl disable

# Note: The `service-name` of cleanmymac installed by setapp may be different
launchctl disable gui/$UID/com.macpaw.CleanMyMac4.HealthMonitor
launchctl disable user/$UID/com.macpaw.CleanMyMac4.HealthMonitor
launchctl disable gui/$UID/com.macpaw.CleanMyMac4.Agent
launchctl disable user/$UID/com.macpaw.CleanMyMac4.Agent

Reference documents:

@mritd
Copy link

mritd commented Dec 15, 2020

After a test restart, this damn process finally disappeared. 😁😁😁
image

@RbBtSn0w
Copy link

RbBtSn0w commented May 19, 2021

I use Terminal a lot, so I added this to my ~/.profile (which is loaded on every Terminal window):

if [ -f "/Applications/CleanMyMac X.app/Contents/Library/LoginItems/CleanMyMac X Menu.app/Contents/Library/LoginItems/CleanMyMac X HealthMonitor.app/Contents/MacOS/CleanMyMac X HealthMonitor" ]; then
  mv -v "/Applications/CleanMyMac X.app/Contents/Library/LoginItems/CleanMyMac X Menu.app/Contents/Library/LoginItems/CleanMyMac X HealthMonitor.app/Contents/MacOS/CleanMyMac X HealthMonitor" "/Applications/CleanMyMac X.app/Contents/Library/LoginItems/CleanMyMac X Menu.app/Contents/Library/LoginItems/CleanMyMac X HealthMonitor.app/Contents/MacOS/CleanMyMac X HealthMonitor.old"
fi

Yes. it's work for me.
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment