Re: Detecting that a program is running under KDE?

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

 



On Saturday 26 November 2005 02:22, Erik Forsberg wrote:
> Hi!
>
> I have a program that needs to detect which desktop environment it's
> running under. I'm happy if I can detect either Gnome or KDE.
>
> Are there any KDE-specific enviornment variables or similar that I can
> depend on, and that only exists in KDE?
>
> Ideally, I'd like to be able to use the same mechanism for detecting
> KDE 3.2 and up.

You could try looking to see if $KDE_FULL_SESSION is set. This is set to true 
at KDE startup in KDE 3.2 and upwards IIRC.

Say hello to Inge for me =)

Regards,

Jes Hall
___________________________________________________
.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

[Index of Archives]     [Trinity (TDE) Desktop Users]     [Fedora KDE]     [Fedora Desktop]     [Linux Kernel]     [Gimp]     [GIMP for Windows]     [Gnome]     [Yosemite Hiking]
  Powered by Linux