Detecting desktop environment - KDE or Gnome?


I have a program that needs to detect which desktop environment it's
running under - KDE or Gnome.

Are there a good way to detect that you're running under Gnome? Some
Gnome-specific environment variable or similar?

Erik Forsberg                OpenSource-based Thin Client Technology
Cendio AB                    Phone: +46-13-21 46 00    

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