Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!


Click here to return to the '10.5: Disable Spotlight LaunchAgent, too' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
10.5: Disable Spotlight LaunchAgent, too
Authored by: jobu10000 on Wed, Nov 14 2007 at 8:05AM PST

Spotlight uses a LaunchAgent to try to continually relaunch itself when it terminates. While it's not really that big of a deal, you can also set the permissions of the launchagent to 0 to keep it from being readable... which will keep launchd from trying to restart spotlight every 10 seconds. After changing the permissions of the spotlight.app, if you look in the console log, you'll probably see a bunch of entries saying that it tried to relaunch and then failed.

To disable the spotlight launch agent:

sudo chmod 0 /System/Library/LaunchAgents/com.apple.Spotlight.plist

To put things back the way they were:

sudo chmod 644 /System/Library/LaunchAgents/com.apple.Spotlight.plist

Why there's no system preference for disabling the spotlight menu, I'll never understand. Way to go apple, thanks for telling me how to use my computer.



[ Reply to This | # ]
10.5: Disable Spotlight LaunchAgent, too
Authored by: aqsalter on Sat, Mar 1 2008 at 4:09PM PST
I used Lingon for this...
Instead of chmoding the file I just disabled the agent (com.apple.Spotlight, under System Agents).
Seems more reasonable and less error prone.
Note: this also has the effect of removing the icon, so actually disabling the agent is all you need to do.

[ Reply to This | # ]