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>
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>
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!!
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.
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.
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
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~
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.
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:
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
I use Terminal a lot, so I added this to my ~/.profile (which is loaded on every Terminal window):