一直感覺OS X自帶的Dashboard對我沒有多大用處。自從用了Alfred之後,Spotlight也幾乎沒碰過(Spotlight佔用的資源可不小)。很早以前就把這兩個給關閉了,今天感覺有必要記錄一下。不過如果用Onyx之類的,可以直接找到相關設置項,更方便一些。
注:以下過程中可能需要輸入系統密碼
關閉Dashboard
在終端中輸入
defaults write com.apple.dashboard mcx-disabled
-boolean YES
再輸入
killall Dock
關閉Spotlight
1.在終端中輸入
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
禁用Spotlight服務。
2.刪除菜單欄Spotlight圖標(給相關文件重命名)
cd /System/Library/CoreServices/
sudo mv Search.bundle/ Search2.bundle/
killall SystemUIServer
恢復方法
1.開啓Dashboard
在終端中輸入
defaults write com.apple.dashboard mcx-disabled
-boolean NO
再輸入
killall Dock
2.開啓Spotlight服務
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
3.恢復Spotlight圖標
cd /System/Library/CoreServices/
sudo mv Search2.bundle/ Search.bundle/