logout: minor adjustments to debug messages
logout: also check $XDG_SESSION_DESKTOP