|
|
A safer, non-hack way to do this
A safer way is simply to edit /etc/hostconfig with your favorite GUI or CLI editor (or a perl one-liner) and change:
SPOTLIGHT=-YES- to: SPOTLIGHT=-NO- With this change, on boot-up, Spotlight will not start. Note: The file is writable only by root, so this will require you either fiddle with permissions in the Finder's Get Info, have an editor that knows how to authenticate itself, or use sudo in the Terminal.
perl one-liner for this
The perl one-liner would look something like this:
sudo perl -pi'.orig' -e 's/SPOTLIGHT=-YES-/SPOTLIGHT=-NO-/' /etc/hostconfig This line edits the file, and creates a backup copy of the original with a ".orig" extension.
perl one-liner for this (w/improved HTML formatting)
The perl one-liner would look something like this:
This line edits the file, and creates a backup copy of the original with a ".orig" extension.
HELP! This made me loose all searching capabilities
Can someone plz post the inverse of this perl command... I typed it into terminal and now I can't search in finder (endlessly searches to no avail) OR using spotlight (doesn't react when i type something in the drop down text box), and the spotlight icon is still on the upper right hand corner of my screen.
Here's one way to undo it
To undo it, simply exchange the YES and NO, like this:
sudo perl -pi'.orig' -e 's/SPOTLIGHT=-NO-/SPOTLIGHT=-YES-/' /etc/hostconfig
Between the first set of slashes is the "search for" parameter, and the "replace with" is between the second set of slashes (they share the common middle slash).
A safer, non-hack way to do this
This method doesn't make the menu item go away :-(
Reboot is required
Forgot to to say "reboot." The perl script just edits the /etc/hostconfi file. That file is generally only read on system startup, which is why the reboot is necessary.
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.21 seconds |
|