Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.5: Remove the Spotlight menu bar icon System 10.5
To disable the Spotlight icon in the toolbar in 10.5, simply run:
sudo chmod 0 /System/Library/CoreServices/Spotlight.app
To re-enable it later, do this:
sudo chmod 755 /System/Library/CoreServices/Spotlight.app
Note that this only disables the icon, not the indexing. To disable that, edit /etc/hostconfig in Terminal (with sudo), and change the line that reads SPOTLIGHT=-YES- to SPOTLIGHT=-NO-. (FYI, in Tiger the Spotlight.app was called Search.bundle.)

[robg adds: I struck out the above about actually disabling Spotlight, as it doesn't work in 10.5. A newer hint will soon be published that will disable Spotlight, and when it shows up, I'll link to it here.]

Update: Here's the new hint.
    •    
  • Currently 1.83 / 5
  You rated: 2 / 5 (6 votes cast)
 
[42,010 views]  

10.5: Remove the Spotlight menu bar icon | 9 comments | Create New Account
Click here to return to the '10.5: Remove the Spotlight menu bar icon' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Disable Spotlight and/or remove its menu bar icon
Authored by: patte on Nov 12, '07 05:53:23PM

I'm not that into the terminal so how do I bring he spotlight icon back if I miss it?



[ Reply to This | # ]
10.5: Disable Spotlight and/or remove its menu bar icon
Authored by: kainewynd2 on Nov 12, '07 07:37:43PM

If you're not into Terminal, don't follow this hint... come up with your own.



[ Reply to This | # ]
10.5: Disable Spotlight and/or remove its menu bar icon
Authored by: jbarley on Nov 12, '07 09:00:20PM

The original poster supplied the neccessary instructions

re: To re-enable it later, do this:
sudo chmod 755 /System/Library/CoreServices/Spotlight.app

jb.



[ Reply to This | # ]
10.5: Disable Spotlight and/or remove its menu bar icon
Authored by: aubray1741 on Nov 13, '07 09:27:07AM

Will this get reversed the next time you repair permissions on your OS X volume?



[ Reply to This | # ]
10.5: Disable Spotlight LaunchAgent, too
Authored by: jobu10000 on Nov 14, '07 08:05:10AM

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 Mar 01, '08 04:09:30PM

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 | # ]
10.5: Remove the Spotlight menu bar icon
Authored by: Mediocrates on Jan 22, '08 11:37:17AM

In order to disable spotlight you can still use the mdutil command.

mdutil -i off /Volume/<disk name>



[ Reply to This | # ]
10.5: Remove the Spotlight menu bar icon
Authored by: deibhaid on Jan 30, '09 03:00:33PM

I wrote a little simple script that can be run to disable and enable Spotlight. It writes an empty file to keep track of whether it's disabled or enabled.

#!/bin/sh
if [ -f /System/Library/LaunchAgents/Spotlight.disabled ]
then sudo chmod 644 /System/Library/LaunchAgents/com.apple.Spotlight.plist
sudo chmod -R 755 /System/Library/CoreServices/Spotlight.app
sudo rm /System/Library/LaunchAgents/Spotlight.disabled
echo "enabled"
else sudo chmod 0 /System/Library/LaunchAgents/com.apple.Spotlight.plist
sudo chmod -R 0 /System/Library/CoreServices/Spotlight.app
sudo touch /System/Library/LaunchAgents/Spotlight.disabled
for i in $(ps aux | grep Spotlight | grep -v grep | awk '{print $2}');do kill -9 $i;done
echo "disabled"
fi



[ Reply to This | # ]
10.5: Remove the Spotlight menu bar icon
Authored by: kenbotwinick on Sep 11, '09 09:55:14AM

Looking forward to a new 10.6 hint for how to disable that damned magnifying glass menu again... :)



[ Reply to This | # ]