LXDE and Lubuntu is not recognized
Bug #778148 reported by
Julien Lavergne
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hardinfo (Ubuntu) |
Fix Released
|
Low
|
Julien Lavergne |
Bug Description
Binary package hint: hardinfo
In Computer => Operating System => Desktop Envrironnement, LXDE or Lubuntu is not recongnized. The entry field shows "Unknow (Window manager: Openbox).
To detect if it's a LXDE or a Lubuntu session, hardinfo can try to detect if lxsession is running. If it's the case, it can consider that it's a LXDE session. Then, if the environnement variable DESKTOP_
To post a comment you must log in.
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.