# Cleaning out Clean My Mac

I just got a notification on my computer from Clean My Mac 2, a utility I bought as part of the recent MacHeist nanoBundle. I have nothing against CMM2—it does a fine job of scanning my disk and finding files that might be good to delete—but I don’t want it nagging me to do so. So I went searching for how that notification was sent.

I didn’t have to look far. The natural place for scheduled, periodic tasks to live is in your ~/Library/LaunchAgents folder. And that’s exactly where I found a couple of Launch Agent plist files from CMM2.

A quick review of the plist file shows that the scheduled scan is set to run on the 12th and 19th of the month. I installed CMM2 late last month, so it’s not surprising that today was the first day I saw the notification.

I didn’t want to delete the plist files (they might be useful later), but I did want to stop them, so I ran

launchctl unload -w ~/Library/LaunchAgents/com.macpaw.CleanMyMac2Helper.scheduledScan.plist


and

launchctl unload -w ~/Library/LaunchAgents/com.macpaw.CleanMyMac2Helper.trashWatcher.plist


from the Terminal. Running the launchctl command to look for other MacPaw processes

launchctl list | grep macpaw


showed that there was still a CMM2 Helper process running, so I opened Activity Monitor and killed it.

I suppose I could’ve edited the plist files to add a Disabled key, but I find running launchctl easier. I’m always worried that I’ll add an item at the wrong nesting level when I edit XML files.

I’m not going to rant against MacPaw for installing processes without telling me, because it’s entirely possible it did tell me and I didn’t pay attention. Either way, I shouldn’t get that unwanted notification again.

## 5 Responses to “Cleaning out Clean My Mac”

1. Travis Hulsey says:

There is a tab in Clean My Mac 2’s preferences for Scheduling tasks — you may uncheck the box that says “Remind me about regular maintenance.” There’s a pull-down there that defaults to every two weeks.

I have a feeling if you don’t uncheck this that you may have to deal with this again at some point.

2. Claude says:

You may look at this: “This tool makes use of Automatic Folder Actions in order to create a very basic but effective way of monitoring the addition of new launch objects to standard locations. In case a new object is placed in one of the monitored directories, a pop-up informs the user about the change, who then has in turn to decide if the change was legitimate or not. The new version is also monitoring locations where plug-ins are installed, for instance for common Internet browsers.”

I have it installed in my Utilities folder since about a year and it’s very effective.

And yeah, CleanMyMac don’t tell you about LaunchAgents.

3. Thomas says:

Thanks for the reminder, just checked and adjusted the list. And Claude’s suggestion is added to my to-do list for Hazel :)

May be of help, if anyone’s looking for that and, like me, doesn’t use that functionality often enough to learn the syntax (or just want to have some GUI and a handy list): For dealing with Agents, I’ve been relying on Lingon for several years: http://sourceforge.net/projects/lingon/files/Lingon/2.1.1/ Four years later, that version still works like a charm. Literally saved my day once or twice when some helpers went rogue. And fun to play with Adobe et al.

See the discussion on http://www.macupdate.com/app/mac/19879/lingon why Lingon 3 is much less useful due to limitations required by the App Store (which are quite understandable from Apple’s perspective I guess).

4. Travis,
I suspect you’re right and that CMM2 will reset its Launch Agents the next time I run it—unless I use your handy tip to turn that feature off. Thanks!

Claude,
That is a nice utility, but there’s some irony in adding a process to prevent the addition of processes.

Thomas,
I’m a longtime Lingon user and would’ve used it here if I wanted to change the scheduling of the processes. But since I just wanted them turned off, I felt it was quicker to just use launchctl.

5. Chris Jones says:

I use Hazel to show a notification when any new LauchAgent or similar plist is added to my mac. I used ConsultantCanary to find the relevant user/system folders to watch.