Determine if Xfce is running
Brian J. Tarricone
bjt23 at cornell.edu
Thu Sep 13 20:01:15 CEST 2007
Christian Dywan wrote:
> 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.
More information about the Xfce4-dev