Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I disabled and removed spotlight from my menubar to save performance and space. Now except for saving some space, I have a gap in my menu-bar I'd like to get rid of:

Screenshot of the gap

Anyone an idea how to get it away?

share|improve this question
    
Have you tried restarting? –  Mark Szymanski May 7 '11 at 18:14
    
Log off and log back in. –  Martín Marconcini May 7 '11 at 18:19
    
Restarting does not help. Therefore logging off and back in does not work either. –  noxoc May 7 '11 at 18:43
add comment

2 Answers

up vote 6 down vote accepted

First, revert whatever you did to remove it. Then, run the following commands in Terminal.app:

$ sudo chmod 000 /System/Library/CoreServices/Search.bundle/
$ killall SystemUIServer

(The $ only represents the prompt and should not be typed.)

What I get:
Spotlight removed

To get Spotlight back, enter the following commands:

$ sudo chmod 755 /System/Library/CoreServices/Search.bundle/
$ killall SystemUIServer
share|improve this answer
    
This works! Awesome! Thank you :) –  noxoc May 8 '11 at 13:29
    
You're welcome. I forgot one thing: If you "repair permissions", it'll also revert this hack. –  Graham May 8 '11 at 14:34
add comment

Logging out and back in (or restarting your computer) will fix the problem, but you might be able to fix it simply by Cmd-dragging one of the icons next to it. Holding Cmd will let you move some of the icons around, and I've found that sometimes, moving one will re-arrange the others to fill any gaps that may have appeared.

This will also help you put them in an order that you like best.

share|improve this answer
    
Does not help :( –  noxoc May 7 '11 at 18:44
    
@Nils What method did you use to remove the icon? If you used a "hack-y" method, you may just have removed the icon resource and not told OS X to release the space that it reserves for it. –  Austin May 7 '11 at 19:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.