13

Mac os x El Capitan

我想隐藏聚光灯图标。
输入命令:

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

响应收到此消息:

chmod: Unable to change file mode on /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search: Operation not permitted

如何解决?

4

3 回答 3

28

不确定其他答案,因为/System/Library/CoreServices/Search.bundle这里似乎不存在。

但是,如果您使用的是Bartender,您仍然可以通过暂时禁用系统完整性保护来删除 Spotlight 图标(同时保持 Spotlight 搜索完好)。

  1. 重新启动进入恢复模式(按住⌘</kbd>+R during boot)
  2. 实用工具 > 终端
  3. csrutil disable
  4. 重启
  5. 启动调酒师。它会要求安装一些东西,现在 SIP 已关闭
  6. 隐藏聚光灯,现在可以在调酒师的菜单项列表中找到
  7. 重新启动进入恢复模式并重新启用 SIP:csrutil enable
  8. 重启

重新启用 SIP 后,Bartender 将继续隐藏图标。

于 2015-10-03T10:57:26.347 回答
1

实际上,您也可以在恢复模式下启动 (cmd + r),然后在终端中输入命令。通过这种方式,您可以隐藏聚光灯图标,但不必禁用 sip。

于 2015-09-11T20:23:09.897 回答
0

我找到了解决办法!

您需要通过恢复启动禁用 el capitan 的 sip。
这里有更多细节:
http ://blog.binaryage.com/el-capitan-update/

于 2015-07-27T06:52:07.700 回答