XDG_CURRENT_DESKTOP might also be "Unity" and
"gnome-session-quit --force --logout --no-prompt" is still
relevant.