Skip to content

Instantly share code, notes, and snippets.

@rockpapergoat
Created April 13, 2012 19:51
Show Gist options
  • Save rockpapergoat/2379640 to your computer and use it in GitHub Desktop.
Save rockpapergoat/2379640 to your computer and use it in GitHub Desktop.
#!/bin/sh
# only works on SL
/bin/launchctl unload -S Aqua /System/Library/LaunchAgents/com.apple.mrt.uiagent.plist
/bin/launchctl load -w -S Aqua /System/Library/LaunchAgents/com.apple.mrt.uiagent.plist
# only works on Lion
/bin/launchctl asuser `id -u "$USER"` /bin/launchctl unload -S Aqua /System/Library/LaunchAgents/com.apple.mrt.uiagent.plist
/bin/launchctl asuser `id -u "$USER"` /bin/launchctl load -w -S Aqua /System/Library/LaunchAgents/com.apple.mrt.uiagent.plist
/bin/launchctl unload /System/Library/LaunchDaemons/com.apple.mrt.plist
/bin/launchctl load -w /System/Library/LaunchDaemons/com.apple.mrt.plist
@ezeeyahoo
Copy link

Does it work on Mojave now?

/bin/launchctl asuser id -u "$USER" /bin/launchctl load -w -S Aqua /System/Library/LaunchAgents/com.apple.mrt.uiagent.plist
working

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