Hello,

[I do not know whether this answer reached the Debian developers,
therefore I forward it now.]

It seems the bug is caused by an interaction between texdoc and
xdg-open. Could not texdoc be configured so that it called xdg-open
*without* unzipping the file? At least in my system, xdg-open can
handle gzipped PDF files already on its own.

If it worked, then this would be the simplest and most natural solution
to the problem.

- Markus Redeker

------------------------------------------------------------------------

Date: Thu, 18 Jul 2013 14:48:09 +0200
From: Tassilo Horn <t...@gnu.org>
To: Markus Redeker <c...@ibp.de>
Cc: bug-auctex <bug-auc...@gnu.org>
Subject: Re: [Markus Redeker <cep-82uicwzi...@public.gmane.org>]
Bug#715187: auctex: TeX-doc function cannot handle compressed files


Markus Redeker <c...@ibp.de> writes:

Hi Markus,

> I do not know whether that helps you, but on my system there are _two_
> files 'scrguide.pdf',

I've found out what I have to do, and now I know what causes the
problem.  It's not AUCTeX's fault.  Try "texdoc pgfmanual" in a
terminal, it will fail the very same way.

Texdoc can be configured to unzip zipped files automatically.  It then
simply unzips them to /tmp, then calls the viewer, and when the viewer
returns, it deletes the unzipped version from /tmp again.

Now the problem is that texdoc seems to use `xdg-open' for opening
files.  On the one hand, that's a good thing cause xdg-open will fire up
whatever program you've associated with the given file type in KDE or
GNOME or whatever.  But on the other hand, xdg-open simply spawns the
appropriate program and then returns immediately.  Because it returns,
texdoc deletes the temporary unzipped file, cause it thinks you've quit
your viewer.  But in fact, the file is deleted before evince started.

Long story short: Explicitly assign evince as pdf viewer in some config
file returned by `texdoc --files'.

  viewer_pdf = evince

Bye,
Tassilo


-- 
Markus Redeker
Bristol, UK


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to