detect xfce, su(do) equivalent

Olivier Fourdan fourdan at gmail.com
Thu Mar 19 12:57:52 CET 2009


On Thu, Mar 19, 2009 at 11:02 AM, Egon Kocjan <egon at krul.ath.cx> wrote:
> How do I check, if the user is running xfce?
> (for example, to detect gnome, check for env. var. GNOME_DESKTOP_SESSION_ID)

Which is completely broken because one may set
GNOME_DESKTOP_SESSION_ID on purpose to defeat programs that try to be
smart by detecting the desktop (e.g. some older open office of java
versions from sun)

Cheers,
Olivier.



More information about the Xfce mailing list