Sean Breeden

Full Stack PHP, Python, AI/ML Developer
"Saruman believes it is only great power that can hold evil in check, but that is not what I have found. I found it is the small everyday deeds of ordinary folk that keep the darkness at bay. Small acts of kindness and love." --Gandalf

"Permission denied" when reading xps files in Ubuntu 20.04 using evince

Friday, April 9th, 2021

evince is the PDF viewer that ships with Ubuntu by default. It can open the following formats: PDF, Postscript, djvu, tiff, dvi, XPS, SyncTex support with gedit, comics books (cbr,cbz,cb7 and cbt).

If there's a "Permission Denied" error message when opening a file, then there's a good chance that you are attempting to do so from a symlinked folder. There are apparmor fixes out there to allow opening via a symlink, but I prefer to simply relocate the file to a non-symlinked folder like /home or /tmp.

The reason I had this error is that my Desktop folder is a symlink from another physical drive.

Symlinked Desktop folder screen cap


Temporarily copying the file to /tmp to open it solved the problem for me.

Views: 1047
| Home | Announcements | Artificial Intelligence | Commodore 64 | CraftCMS | Crypto | Games | Geek | Machine Learning | Magento | Memes | Science News | Security | 7 Days to Die | Ubuntu |