A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://emacs.stackexchange.com/questions/53026/how-to-restore-file-system-access-in-macos-catalina below:

osx - How to Restore File System Access in macOS Catalina

I updated to macOS Catalina which requires the user through pop-ups to allow any app trying to access the file system for the first time.

No such pop-up is appearing for Emacs. Running the script shared here, https://gist.github.com/dive/f64c645a9086afce8e5dd2590071dbf9
does not seem to change anything. That is, Emacs and any shell running in it cannot access any file on the file system.

How can I restore the access?

My Emacs version is *GNU Emacs 26.1 (build 1, x86_64-apple-darwin14.5.0, NS appkit-1348.17 Version 10.10.5 (Build 14F2511))

UPDATE
Granting the Emacs app Full Disk Access in "General Settings -> Security & Privacy -> Privacy" does not solve the problem.

asked Oct 8, 2019 at 9:42

wsaleemwsaleem

1,23333 gold badges1010 silver badges88 bronze badges

6

Emacs.app actually launches using a ruby script. As a result, MacOS Catalina (or later, up to at least Ventura) uses the permissions set for ruby, not the permissions for Emacs.app. Open General Settings -> Security & Privacy -> Privacy, select Full Disk Access in the left pane, then click + and add /usr/bin/ruby to resolve your issue.

/usr is hidden by default on MacOS but you can toggle visibility in Finder by using Shift+Command+Period

answered Oct 8, 2019 at 16:32

ChrisChris

2,00611 gold badge88 silver badges22 bronze badges

9

@Chris's answer also resolves a different problem for me (which had the same root cause): I'm recording it here to make this answer more findable.

I was getting the error "Listing directory failed but 'access-file' worked" on ~/Downloads (and Documents, Desktop, and some others). I tried adding Emacs to System Preferences > Security & Privacy > Full Disk Access, without success, as mentioned above. But adding /usr/bin/ruby solved it.

answered Nov 15, 2019 at 1:35

1 Protected question

. To answer this question, you need to have at least 10 reputation on this site (not counting the

association bonus

). The reputation requirement helps protect this question from spam and non-answer activity.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4