Detecting desktop environment - KDE or Gnome?



Hi!

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?

Regards,
\EF
-- 
Erik Forsberg                OpenSource-based Thin Client Technology
Cendio AB                    Phone: +46-13-21 46 00    
			     Web: http://www.thinlinc.com
		             




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