V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
null0000
V2EX  ›  macOS

macOS Catalina 权限问题

  •  
  •   null0000 · Mar 7, 2020 · 3463 views
    This topic created in 2241 days ago, the information mentioned may be changed or developed.

    发现一个问题,为什么没有给到 vscode 的「文稿」文件夹的访问权限,它却依然能读写创建文件?

    3XrxsJ.png

    Royal TSX 也是。

    7 replies    2020-03-07 18:57:02 +08:00
    edsion996
        1
    edsion996  
       Mar 7, 2020
    code 是命令行工具
    null0000
        2
    null0000  
    OP
       Mar 7, 2020
    @zjb861107 啥意思?自带终端不给权限都无法访问「文稿」的。
    ybw
        3
    ybw  
       Mar 7, 2020 via Android
    你手动从 Finder 导入导出的例外
    null0000
        4
    null0000  
    OP
       Mar 7, 2020
    @ybw 谢谢,哪里有详细说明呢?
    ybw
        5
    ybw  
       Mar 7, 2020 via Android
    @null0000 我记得我就是从 vscode 的官方文档看到的,有 10.15 系统的相关问题博客
    ItzhacLea
        6
    ItzhacLea  
       Mar 7, 2020
    如果你是从 Finder 双击这个文件启动 VSCode 编辑的话,那么在双击的时候这个文件就被添加 com.apple.macl 属性。这个属性是 Catalina 新增的,并且无视 TCC 的权限设置。
    null0000
        7
    null0000  
    OP
       Mar 7, 2020
    @ybw
    @ItzhacLea

    谢谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4193 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 05:27 · PVG 13:27 · LAX 22:27 · JFK 01:27
    ♥ Do have faith in what you're doing.