Skip to content

Instantly share code, notes, and snippets.

@om2c0de
Forked from ulasozguler/remove_sl_icon.sh
Created March 1, 2020 10:40
Show Gist options
  • Save om2c0de/4bde7e6fa6e6c9278d2c013cd91754c3 to your computer and use it in GitHub Desktop.
Save om2c0de/4bde7e6fa6e6c9278d2c013cd91754c3 to your computer and use it in GitHub Desktop.
Remove spotlight icon from menu bar.
cd /System/Library/CoreServices/Spotlight.app/Contents/MacOS
sudo cp Spotlight Spotlight.bak
sudo perl -pi -e 's|(\x00\x00\x00\x00\x00\x00\x47\x40\x00\x00\x00\x00\x00\x00)\x42\x40(\x00\x00\x80\x3f\x00\x00\x70\x42)|$1\x00\x00$2|sg' Spotlight
cmp -l Spotlight Spotlight.bak
sudo codesign -f -s - Spotlight
sudo killall Spotlight
@aviadcye
Copy link

aviadcye commented Apr 27, 2020

Hello.
If you could add to the very top:
sudo mount -uw / killall Finder
That would make the script work on Catalina (when SIP is disabled).

As you're the one that google points to, I feel that you should make the commit, instead of me forking this gist.
Thank you, Aviad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment