CleanMyMacX
是Mac
平台上优秀的卸载工具。虽然Mac
上的应用安装卸载比Windows
上简单很多,AppStore
上的软件采用的是沙盒模型,删除的时候会把相关的数据一并删除;但是大量的非AppStore
软件在删除对应的app之后不会同时删除对应的数据。 CleanMyMacX
这种类型的软件会扫描这些相关的数据并一起删除。
最近发现 CleanMyMacX
会附带一个后台服务:CleanMyMacX HealthMonitor
,即使软件本身退出这个后台服务还一直运行。这就有点360的味道了,让人不爽。最主要的是这个进程对资源的占用还是有的,没有到那种可以完全忽略的地步。因此想办法禁用它。
2020.12.03 补充:该方法不太好,请参考下面的说明。
尝试了很多网上提供的办法都不成功,最后发现了一个简单的办法,只要删除对应的执行文件即可,针对最新的4.6.15有效:
1rm "/Applications/CleanMyMac X.app/Contents/Library/LoginItems/CleanMyMac X Menu.app/Contents/Library/LoginItems/CleanMyMac X HealthMonitor.app/Contents/MacOS/*"
2020.12.03 补充:
以上方法有些后遗症,打开控制台程序,可以看到在system.log
中定期出现异常信息:
1Dec 3 00:40:02 macBookPro com.apple.xpc.launchd[1] (com.macpaw.CleanMyMac4.HealthMonitor[7781]): Service exited with abnormal code: 78
2Dec 3 00:40:02 macBookPro com.apple.xpc.launchd[1] (com.macpaw.CleanMyMac4.HealthMonitor): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
3Dec 3 00:40:14 macBookPro com.apple.xpc.launchd[1] (com.macpaw.CleanMyMac4.HealthMonitor[7785]): Could not find and/or execute program specified by service: 45: Operation not supported: com.macpaw.CleanMyMac4.HealthMonitor
请使用以下方法:
经过试验,可以修改权限解决,不需要删除文件,也不会出现system.log中的异常日志。针对4.7.1有效:
1chmod 400 "/Applications/CleanMyMac X.app/Contents/Library/LoginItems/CleanMyMac X Menu.app/Contents/Library/LoginItems/CleanMyMac X HealthMonitor.app/Contents/MacOS/CleanMyMac X HealthMonitor"
2chmod 400 "/Applications/CleanMyMac X.app/Contents/Library/LoginItems/CleanMyMac X Menu.app/Contents/Library/LaunchServices/com.macpaw.CleanMyMac4.Agent"
3chmod 400 "/Applications/CleanMyMac X.app/Contents/Library/LaunchServices/com.macpaw.CleanMyMac4.Agent"
2023.07.20 补充:
新版本的CleanMyMacX目录结构又有变化,请使用以下脚本:
1chmod 400 "Applications/CleanMyMac X.app/Contents/Library/LoginItems/CleanMyMac X HealthMonitor.app/Contents/MacOS/CleanMyMac X HealthMonitor"
2chmod 400 "Applications/CleanMyMac X.app/Contents/Library/LoginItems/CleanMyMac X Menu.app/Contents/Library/LaunchServices/com.macpaw.CleanMyMac4.Agent"
3chmod 400 "Applications/CleanMyMac X.app/Contents/Library/LaunchServices/com.macpaw.CleanMyMac4.Agent"