• Did you order new AirTags? We've opened a dedicated AirTags forum.

steiney

macrumors 6502
Original poster
Nov 6, 2009
480
30
Hello All!

I have 10.6 and want to hide the spotlight icon. I was only able to find terminal code through googling that would hide the icon in 10.7.

My question is: will the code damage my OS if I use it, or will it work just the same? I don't know enough about OSes to know the answer.

The code is:

Code:
sudo chmod 600 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search

Then you do
Code:
killall SystemUIServer
to refresh.

The code was found here.

If anyone knows the answer to my question, I would be glad to know it!

Thanks in advance,

steiney
 

Hellhammer

Moderator emeritus
Dec 10, 2008
22,164
581
Finland
Most Terminal commands are the same under Lion and SL (and any OS X). It can't really harm anything because it will just report an error if it doesn't work (in this case, the file is not found).
 
Comment

balamw

Moderator
Aug 16, 2005
19,366
978
New England
My question is: will the code damage my OS if I use it

Unlikely to cause any permanent damage. You can simply restore its permissions using Disk Utility or with another call to chmod (looks like the default permissions are 755 instead of 600).

If the file isn't in the exact same location in 10.6 you will simply get an error and no harm done.

EDIT: Try the killall as
Code:
sudo killall SystemUIServer

EDIT: No sudo required it runs as the logged in user.

B
 
Last edited:
Comment
Nov 28, 2010
22,670
28
located
Just tested it in 10.6.8 and it works. Though I backed up my system before, but the Terminal command was not deleting anything anyway.

I could also restore the Spotlight icon with the command given in that article.
 
Comment

steiney

macrumors 6502
Original poster
Nov 6, 2009
480
30
Wow. You guys are quick (and awesome). Thank you for the help. I learned something new about Terminal stuff today!
 
Comment

steiney

macrumors 6502
Original poster
Nov 6, 2009
480
30
Okay, one more question: Now my Terminal is acting weird. I opened it, and it's just the cursor with no prompt, and when I enter code, it does nothing. I seem to remember I force closed it last time, but maybe not. I've tried quitting and re-opening it, but it's still the same. How do I reset it?
 
Comment

steiney

macrumors 6502
Original poster
Nov 6, 2009
480
30
Thanks. For the record, I just remembered what caused the Terminal problem (most likely). Yesterday, I put that code in that I had the original question about, but then it came back with an authentication request, which made me have second thoughts, and I just closed the window instead of going through with it. Maybe that caused the hang up.
 
Comment
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.