升级MacOS系统出现的问题:listing directory failed but 'access-file' worked

有遇到同款的问题吗?试了些网上提供的方法,都无效啊。 方法一: If anyone comes here curious as to how they can access Desktop, Documents, or Downloads, the answer is in the link above, for reference, but I’ll put it here in case that link expires.

  1. In System Preferences -> Security & Privacy, select the Privacy tab.
  2. From the list on the left, select Full Disk Access.
  3. Click the padlock in the lower left of the window to unlock this setting, if necessary.
  4. Click the + button to add Emacs to the list, then add Emacs.

Now in Emacs, do the following for each of the three directories: Desktop, Documents, and Downloads.

  1. Press Cmd+O to open a file.
  2. Open any arbitrary file in the folder you want access to.

From now on, you’ll be able to use C-x C-f to open ~/Desktop/, for example.

方法二:

  1. change emacs to emacs.bak
  2. change emacs-x86_64-10_14 to emacs

这两个方法都不行。

同时是了下eshell, 出现如下提示: Opening directory: Operation not permitted, /user/…/Documents

应该是升级带来的权限的问题,我是升级到10.15.6才出现的。

Mac OSX不是给开发者用的,还是换Linux省心

谢谢~ Mac 用了几年了,也打算换了~~ 有推荐的吗?

To help clarify (based upon my experiments – please verify) There seems to be three of these: ~/Documents , ~/Desktop , and ~/Downloads … I’m surprised ~/Downloads is in there because its not copied to iCloud.

The ns-open-file-using-panel must be done once for each of these. After that, it appears to work forever and ever. I even rebooted and it still worked. Go figure…

只能仔细寻找,上面的解答还可行啊,我打开了 Documents,Desktop 和 Download, 就好了 ~

轮到下一个问题了:) “Package cl is deprecated”

我当年就是从windows->mac->linux这样过来的。

回想起来,mac是一个不错的从windows过度到linux的平台。常见应用都有mac版,比一下子换成linux容易适应。

不过mac现在越来越向消费类电子产品发展,对开发者越来越不友好。

刚开始换linux的时候是ubuntu系统,原因是网上资源比较多,有问题比较容易解决。前不久换了arch,激进的版本策略和滚动式的更新方式用起来更爽一些。

如果你在mac下能习惯使用MacPort管理应用,那么转换到linux基本上没有太大的障碍.

将 /usr/local/bin/ruby 设置为完全文件访问权限即可解决问题, 亲测可用!

1 个赞

这明显是安全考虑,Mac还有个坑就是最大文件打开数,默认是256,改了就好了。