Attached (text) files open with different name
Submitted by Denis Bitouzé
Link to original bug (#772188)
Description
Context: Linux Mageia5, Evince 3.14.2.
Consider the following test.tex
to be compiled with pdflatex
:
\begin{filecontents*}{foo.tex}
\documentclass{article}
\begin{document}
Foo.
\end{document}
\end{filecontents*}
%
\documentclass{article}
\usepackage{xcolor}
\usepackage[color=black]{attachfile2}
\begin{document}
\textattachfile{foo.tex}{Link to 'foo.tex'}.
\end{document}
When open in Evince, the resulting PDF file contains the link "Link to 'foo.tex'"
that is supposed to open foo.tex
. But clicking on it will open foo.tex.xxx
instead, where xxx
is a random string. The open file has the same content as foo.tex
but, because of its strange extension, is not open as a .tex
file by the underlying text editor.
Notice that Adobe Reader opens this file with the same name.
Attachment 336522, "test.pdf file corresponding to the test.tex file of this bug report":
test.pdf
Version: 3.14.x