hello, i use xfce, and kdm. when i login, kdm starts xfce. now i started also using dfm, which runs on top of xfce and gives it all sorts of extra functionality (you can see it all happening here
) but the thing is that xfce does not appear to have any actual scripts which it runs upon being started by kdm. now i want dfm to run every time i start xfce, but if i log in using another desktop environment such as kde, i do not want dfm to start. how would i get a script to only start dfm if xfce is running, and optionally i'd like it to be configurable so it would be able to start when fvwm or blackbox or windowmaker start also, but definitely not when gnome or kde start.
it sounds like a few simple lines, but i am not sure how to get it to check what desktop environment is running.