.bash.d/desktop - only source desktop.d if X is running.