randomdrake/nasa-apod-desktop — pull request #5 by yolesaber (2012-08-03 20:31:40+00:00)
Title: Added functionality to differentiate between Window Managers

Hello. Neat little script. I've added about five lines of code that now make sure that it can run on both Gnome and xfce. It is hard, if not impossible, to do this in the general case so I just have it read the output of 'top' and search for specific processes ('gnome-sessions' for gnome, 'xfwm4' for xfce4).