Identifying the desktop session

Jim Campbell jwcampbell at
Wed Apr 27 18:46:36 UTC 2011

For user help purposes, we're wondering what would be the best way of
identifying the user's user session. For example, under Unity, running:


just produces the result, "gnome."  running lsb_release -a  just gives info
about the general Ubuntu platform.

What would be the best way of identifying what session a user is running?
For starters, we'd need to know Xfce, Unity, Unity-2d, Gnome-Shell, etc.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Ubuntu-devel-discuss mailing list