Comment 1 for bug 778148

Revision history for this message
Jonathan Marsden (jmarsden) wrote :

This looked pretty trivial, so I had a quick go at doing it.

Rather than "try to detect if lxsession is running", which seemed a bit awkward, I checked for XDG_CURRENT_DESKTOP and if that exists, use that as the current DE name. If in addition DESKTOP_SESSION exists, it is added as additional information in parentheses, so in Lubuntu you see

  Desktop Environment LXDE (Lubuntu)

Looks sane to me.

Patch and debdiff attached, this will soon be in my PPA ppa:jmarsden/lubuntu for anyone wishing to test it that way.