$ printf 'Desktop: %s\nSession: %s\n' "$XDG_CURRENT_DESKTOP" "$GDMSESSION" Desktop: ubuntu:GNOME Session: ubuntu
$ printf 'Desktop: %s\nSession: %s\n' "$XDG_CURRENT_ DESKTOP" "$GDMSESSION"
Desktop: ubuntu:GNOME
Session: ubuntu