Hi, >Is there a programmatic way that a piece of software can learn what >desktop environment it is executing in?
Short answer: No. Long answer: http://unix.stackexchange.com/questions/116539/how-to-detect-the-desktop-environment-in-a-bash-script Cheers, Nik