[texdoc] Bug#561785: texlive-base: texdoc does not use standard pdf-viewer defined in KDE
Norbert Preining
preining at logic.at
Sun Dec 20 23:12:42 CET 2009
Hi Manuel,
here is a bug report from Debian that suggests something regarding
viewer selection. Can you please comment on it?
On Sun, 20 Dec 2009, Johannes Fichtinger wrote:
> Hallo!
>
> When calling texdoc PACKAGENAME in KDE, the pdf description of the package is actually opened with GIMP, instead of using the KDE system-wide setting for the default pdf viewer, e.g. okular.
>
> The problem arises due to a wrong selection of the application based on the existance of certain commands in /usr/share/texmf-texlive/scripts/texdoc/texdoc.tlu (starting from line 747):
>
> viewer_pdf = first_in_path {
> {'gnome-open', '(gnome-open %s) &'}, -- gnome
> {'kde-open', '(kde-open %s) &'}, -- kde 4
> {'kfmclient', '(kfmclient exec %s) &'}, -- older kde
> {'exo-open', '(exo-open %s) &'}, -- xfce
> {'xdg-open', '(xdg-open %s) &'}, -- freedesktop.org
> {'evince', '(evince %s) &'},
> {'okular', '(okular %s) &'},
> [...]
>
> Selecting the pdf-viewer based on the existence of eg. gnome-open in the path is incorrect since being in a KDE session still gnome-open might be found in the path. It would be better to base the selection instead on some environment variables. KDE provides eg.
> declare -x KDE_FULL_SESSION="true"
> which can be used to detect if we are in a running KDE session. Gnome might provide similar variables.
>
> Johannes
For Manuel: This is the texdoc version as shipped on the DVD, not that
fixes you put it after release.
Best wishes
Norbert
----------------------------------------------------------------------------
Norbert Preining preining@{jaist.ac.jp, logic.at, debian.org}
JAIST, Japan TU Wien, Austria Debian TeX Task Force
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
----------------------------------------------------------------------------
NYBSTER (n.)
Sort of person who takes the lift to travel one floor.
--- Douglas Adams, The Meaning of Liff
More information about the texdoc
mailing list