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.



** Patch added: "03-detect-lxde.patch"
   
https://bugs.launchpad.net/ubuntu/+source/hardinfo/+bug/778148/+attachment/2115893/+files/03-detect-lxde.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/778148

Title:
  LXDE and Lubuntu is not recognized

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to