[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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



Reply to: