xterm commands (ls, cd, ...) unable to access Desktop, Documents after updating to Catalina
I have been using the beta versions of Catalina, and mostly have not had any problems. However, I often run XQuartz and use several xterms. These are run from TWM. Before Catalina I would be able to run ls, cd, vi, and other shell commands from within an xterm, even on the Desktop and Documents folder. I have added XQuartz to the list of apps for Full Disk Access in the Preferences. That doesn't fix the problem. I have also given /opt/X11/bin/xterm Full Disk Access, but that doesn't fix it either. Can anyone suggest what I might do to give the xterm commands permission to access these folders? Thank you.
Solution 1:
The solution (at least for me) was to add the binary xquartz to the list of app with "Full Disk Access" (in the "Privacy" tab of the "Security and Privacy" setting of the "System Preferences"). The path to the binary is:
/opt/X11/bin/Xquartz
I also added
/opt/X11/bin/xinit
since it's a running process, although I don't think it is needed...
However, I am still having problems accessing iClouds folders (Document, Desktop, etc.)
Solution 2:
The problem is Catalina's new enhanced security that prevents apps from accessing Documents, Desktop, Downloads, external & network volumes, etc, etc, without granting permission.
For some reason, X11 apps (or XQuartz itself) don't ask for permission to be granted when you try to access those folders. And it doesn't seem possible to add an application to the Privacy panel in System Preferences (the + - icons are greyed out, even with padlock unlocked).