Determine if Xfce is running

Christian Dywan christian at
Fri Sep 14 12:54:09 CEST 2007

Am Thu, 13 Sep 2007 11:01:15 -0700
schrieb "Brian J. Tarricone" <bjt23 at>:

> Christian Dywan wrote:
> > Hi,
> > 
> > I wonder, what would be a good way to figure out from a program, if
> > the user is running Xfce? I know about the environment
> > variable DESKTOP_SESSION, which is set by gdm and (a recent) kdm.
> > Yet this works only if there's actually one of these running. So
> > are there any alternatives?
> xprop -root _DT_SAVE_MODE | grep -q xfce4
> ... should do the trick.  At least, that's what xdg-utils does.
> 	-brian

I think I will go for the xdg way. Thank you very much, Brian.

And thank you, Mike, as well.


More information about the Xfce4-dev mailing list