evince tries to launch a program in its current directory instead of in the PATH
Submitted by Denis Bitouzé
Link to original bug (#759529)
Description
Created attachment 317480
Here is the PDF file, test.pdf
, to which the test.tex
file is attached.
The joined PDF file results from the pdflatex
compilation of the
following test.tex
file located in my /home/bitouze/latex/divers/
directory:
\documentclass{article}
\usepackage{hyperref}
\pdfcompresslevel=0
\begin{document}
\href{run:firefox https://wiki.gnome.org/Apps/Evince}{Open evince page.}
\end{document}
If this PDF file is open with xpdf
, a click on the link launches a pop
up window which says:
┌────
│ About to execute the command: https://wiki.gnome.org/Apps/Evince &
└────
and asks me if I really want to do this. If I click "OK" then I get what I expect.
By contrast, if this PDF file is open with evince
, a click on the link
fails with the error:
┌────
│ Unable to launch external application.
│ Error when getting information for file
│ '/home/bitouze/latex/divers/firefox https://wiki.gnome.org/Apps/Evince':
│ No such file or directory
└────
So evince
tries to launch a program in its current directory called
'firefox https://wiki.gnome.org/Apps/Evince'.
Looking at the PDF's content, one can see the line:
┌────
│ /Subtype/Link/A<</F(firefox\040https://wiki.gnome.org/Apps/Evince)/S/Launch>>
└────
so probably evince
behavior for 'Launch' PDF action should be improved.
Attachment 317480, "Here is the PDF file, test.pdf
, to which the test.tex
file is attached.":
test.pdf
Version: 3.14.x