use libcinnamon-desktop/gnome-bg.h in cinnamon case
Check XDG_CURRENT_DESKTOP for "X-Cinnamon"