Monday, March 07, 2022

Emacs for Mac and Full Disk Access

 I know Apple is just trying to protect us. Locking down file access was surely the right thing to do from a security point of view. But it does make life a little complicated.

And so why not require that an app like Emacs needs to be explicitly granted Full Disk Access in order to do its job? This ensures that an app that has not been granted such access will not be able to have its way with your file system.

But there's a catch, in some cases. And in this case, if you've granted access to Emacs, you still can't access to the Downloads folder. Now I don't know about you, but I accumulate quite a bit in my Downloads folder, and if I download something from the browser from the email, I often want to look at it in Emacs before I do anything else with it. But you can't, not with Emacs.

Not unless you grant access to Ruby, that is. In order for Emacs to access the Downloads folder, you actually have to grant Full Disk Access to /usr/bin/ruby. I have no idea why. And does granting this access sound like a good idea to you? Yeah, no - me neither. But if you don't know, now you know. And at least you can make a choice about it now.

No comments: