El Capitan从应用程序切换器中删除Finder(cmd选项卡)


11

我无法从El Capitan的应用程序切换器中删除Finder图标。这些指南似乎全部来自2012年- sudo尝试更新时出现权限错误(甚至使用)Info.plist

有没有一种编辑方式/System/Library/CoreServices/Finder.app/Contents/Info.plist,或者有一种完全不同的方式来删除我不知道的Finder?

Answers:


10

该文件受此处概述的系统完整性保护的保护。

通过禁用SIP,您将能够再次编辑info.plist。

因此,cmdR在启动时按即可启动到恢复模式。

  • 打开Terminal.app(菜单->实用程序->终端)
  • 输入 csrutil disable
  • 重新启动Mac
  • 编辑文件/System/Library/CoreServices/Finder.app/Contents/Info.plist
  • 再次重新启动到恢复模式并再次启用SIP: csrutil enable
  • 重新启动Mac

引导到恢复模式后,您也应该能够直接编辑文件而无需禁用SIP:

/Volumes/name_of_main_volume/usr/bin/nano /Volumes/name_of_main_volume/System/Library/CoreServices/Finder.app/Contents/Info.plist

之后,您可能会使用codesign Finder.app:

sudo codesign -fs - /System/Library/CoreServices/Finder.app/
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.