Bug#561785: [texdoc] Bug#561785: texlive-base: texdoc does not use standard pdf-viewer defined in KDE

2009-12-24 Thread Manuel Pégourié-Gonnard
Hi Frank,

On Tue, 22 Dec 2009 23:19:53 +0100, Frank Küster fr...@debian.org wrote:
 Just my 2 cents:  I suggest that we use see wherever possible.  I
 don't care about KDE defaults, but see is the Debian way to say give
 me the viewer for this file type that is configured on this system.
 
IIRC, 'see' is in the list of default viewers, but quite at the end.

 I'm not familiar with the current version of texdoc, so I cannot comment
 whether this is easy or not.  Wasn't there a configuration file, which
 also defines viewer applications?
 
Yes, there is a configuration file which can be used for this purpose.
It is TEXMFMAIN/texdoc/texdoc.cnf (installed as 
/usr/share/texmf-texlive/texdoc/texdoc.cnf in Debian). The comments in the
file
should be clear enough about how to do this (I hope).

I agree that using 'see' as the default viewer on Debian makes a lot of
sense
in theory, but as a user, I never configured it myself, so it most probably

doesn't reflect my real preferences. Anyway...

Manuel.




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



Bug#561785: [texdoc] Bug#561785: texlive-base: texdoc does not use standard pdf-viewer defined in KDE

2009-12-24 Thread Norbert Preining
On Do, 24 Dez 2009, Manuel Pégourié-Gonnard wrote:
 Yes, there is a configuration file which can be used for this purpose.
 It is TEXMFMAIN/texdoc/texdoc.cnf (installed as 
 /usr/share/texmf-texlive/texdoc/texdoc.cnf in Debian). The comments in the
 file
 should be clear enough about how to do this (I hope).

We wil use that for moving see to the top of the list, no need for
changes on the upstream texdoc side itself.

Thanks

Norbert

Norbert Preiningprein...@{jaist.ac.jp, logic.at, debian.org}
JAIST, JapanTU Wien, Austria   Debian TeX Task Force
DSA: 0x09C5B094   fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094

SCRAMOGE (vb.)
To cut oneself whilst licking envelopes.
--- Douglas Adams, The Meaning of Liff



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



Bug#561785: [texdoc] Bug#561785: texlive-base: texdoc does not use standard pdf-viewer defined in KDE

2009-12-22 Thread Manuel Pégourié-Gonnard
On Mon, 21 Dec 2009 20:53:27 +0100, Johannes Fichtinger j...@fichtinger.org
wrote:

 See [1]. There exists another variable called KDE_SESSION_VERSION, which
 from 
 KDE4 on is set to 4, but was not defined for KDE3.x. This can be used
 further 
 to distinguish between KDE4 and KDE3.
 
 It seems, for gnome exits GNOME_DESKTOP_SESSION_ID, which can be tested
for
 
 exising, although I couldn't find any reliable source for that.
 
 [1] 

http://techbase.kde.org/KDE_System_Administration/Environment_Variables#KDE_FULL_SESSION
 
Great. Thank you a lot for these interesting informations. I'll look
further into it and keep you posted.

Manuel.




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



Bug#561785: [texdoc] Bug#561785: texlive-base: texdoc does not use standard pdf-viewer defined in KDE

2009-12-21 Thread Johannes Fichtinger
Hi Manuel, hi everyone!

Am Montag, 21. Dezember 2009 20:35:24 schrieben Sie:
 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.

This is a good suggestion. I may try to enhance the viewer selection in
future versions by looking at those variables also. Do you have a
pointer to this in the KDE documentation?

See [1]. There exists another variable called KDE_SESSION_VERSION, which from 
KDE4 on is set to 4, but was not defined for KDE3.x. This can be used further 
to distinguish between KDE4 and KDE3.

It seems, for gnome exits GNOME_DESKTOP_SESSION_ID, which can be tested for 
exising, although I couldn't find any reliable source for that.

[1] 
http://techbase.kde.org/KDE_System_Administration/Environment_Variables#KDE_FULL_SESSION

Johannes



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



Bug#561785: [texdoc] Bug#561785: texlive-base: texdoc does not use standard pdf-viewer defined in KDE

2009-12-20 Thread Manuel Pégourié-Gonnard
Hi Norbert, hi all,

Norbert Preining a écrit :
 here is a bug report from Debian that suggests something regarding
 viewer selection. Can you please comment on it?
 
Sure.

 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.
 
It was already reported upstream, so I fixed it by putting gnome-open
etc at the end of the list in a later texdoc version. This should make
the viewer selection no worse than it was before I added those, but
won't recognize kde/gnome/whatever properly.

However, see below.

 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.

This is a good suggestion. I may try to enhance the viewer selection in
future versions by looking at those variables also. Do you have a
pointer to this in the KDE documentation?

In the meanwhile, you can still select your prefered viewer in your
local configuration file.

 For Manuel: This is the texdoc version as shipped on the DVD, not that
 fixes you put it after release.
 
Ok. I can provide you with a patch against 0.47 so that gnome-open etc
come at the end of the list, which is done in current versions of texdoc.
Or you can update texdoc from current TL. Or whatever you suggest.

Manuel.



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