desktop-entries: support multiple desktops in XDG_CURRENT_DESKTOP

This is based on glib commit:
5a5e16e93c4f11e635918ecdb41681f63fd05a39