1
I can view a PDF file foo.pdf
with evince.
But when I rename it to foo
, evince instead complains,
Unable to open document "foo". Error opening file: Permission denied [Close]
. (Of course the perms haven't changed.)
If I try to view foo
by making a symlink bar.pdf
pointing at foo
, evince similarly won't view bar.pdf
.
On the other hand, evince will show a symlink to foo.pdf
, no matter what the symlink is named. So does evince care about the filename extension, or not? This is perverse.
How can I view a PDF file that's not named *.pdf?
(arXiv's LaTeX file processing step has a "view" button that downloads a PDF named view
. I'd rather not rename that file every single time. As stated above, ln -s view view.pdf
doesn't fix things. Maybe there's some other workaround like a background script that watches when view
's timestamp changes, and then literally copies it to view.pdf
.)
1
evince
doesn't care, at least version3.20.1
that I have. Your error:Error opening file: Permission denied [Close]
indicates that there is a problem with permissions, not with an extension. Most probably there is no read permission. – Arkadiusz Drabczyk – 2019-09-04T17:01:54.747Permissions are fine; the error message is wrong.
I have evince version 3.10.3, current for Ubuntu 14. Should I resort to adding a PPA to get a bleeding-edge evince? – Camille Goudeseune – 2019-09-04T17:10:58.037
1I'm not sure, I still think that permissions are incorrect. Post output of
ls -l view
andfile view
. – Arkadiusz Drabczyk – 2019-09-04T17:11:33.463Hmm, ok. What do other say pdf viewers say, for example
zathura
orokular
? – Arkadiusz Drabczyk – 2019-09-04T17:16:01.463Thanks! Both zathura 0.2.6 and okular 0.19.3 show
view
correctly. This may turn out to be the best workaround. – Camille Goudeseune – 2019-09-04T17:32:13.740