Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

12
  • 29
    Not always true, as for someone could be just "default"
    – dag729
    Commented Jan 18, 2010 at 0:55
  • 15
    doesnt work for all cases.. i have ubuntu 12 and the above command gave just "ubuntu" as output. the command given by @Shannon Nelson worked. Commented Dec 20, 2012 at 7:36
  • 4
    l1zard@Marvin:~$ echo $DESKTOP_SESSION results in default which is not very useful
    – l1zard
    Commented Apr 16, 2013 at 17:27
  • 15
    Mine just says 'ubuntu', when sending this command :/ Commented Jan 20, 2015 at 9:29
  • 1
    I have only ubuntu in this variable.. Commented Oct 31, 2017 at 10:46