Mac os x El Capitan
I want to hide the spotlight icon.
Enter the command:
sudo chmod 600 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search
In response to receiving this:
chmod: Unable to change file mode on /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search: Operation not permitted
How to fix it?
You can drag the Spotlight window anywhere on the desktop. Tip: If the Spotlight icon isn't in the menu bar, add it using Dock & Menu Bar preferences. In the search field, type what you're looking for—results appear as you type. Spotlight lists top hits first; click a top hit to preview or open it.
Not sure about the other answers, because /System/Library/CoreServices/Search.bundle
doesn't seem to exist here.
However, if you're using Bartender, you can still remove the Spotlight icon (while keeping Spotlight search in tact) by temporarily disabling System Integrity Protection.
csrutil disable
csrutil enable
After you've re-enabled SIP, Bartender will keep hiding the icon.
You can actually also just start in recover mode (cmd + r) and type the command into the terminal. this way you achieve to hide the spotlight icon but don't have to diable sip.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With