Skip to main content
14 events
when toggle format what by license comment
Mar 22 at 0:52 comment added Norbert Works for me on Ubuntu 22.04. Output was 'unity'.
Aug 2, 2021 at 9:50 comment added Scott Anderson The answer superuser.com/a/749958/936592 below is a better version of this
Mar 14, 2018 at 6:59 comment added René Nyffenegger $DESKTOP_SESSION is not defined/set at all.
Nov 26, 2017 at 12:11 comment added chriscatfr works for CentOS. On Debian it shows only default
Oct 31, 2017 at 10:46 comment added Szymon Roziewski I have only ubuntu in this variable..
Jan 3, 2016 at 13:23 comment added Violet Giraffe I've found my answer to be more reliable on a variety of different systems - I recommend finding my answer below and checking it out. Let me know if it works for you or not.
Jan 20, 2015 at 9:30 comment added josh.thomson The only noticible difference after installing gnome, was the the button in the top right corner changed from an (X) to a little computer with a blue screen, that's all I can see, I've checked the 'About this Computer' option, but no mention of gnome
Jan 20, 2015 at 9:29 comment added josh.thomson Mine just says 'ubuntu', when sending this command :/
Apr 16, 2013 at 17:27 comment added l1zard l1zard@Marvin:~$ echo $DESKTOP_SESSION results in default which is not very useful
Mar 14, 2013 at 22:01 comment added Felipe Buccioni it works in my Ubuntu 12.10 KDE
Dec 20, 2012 at 7:36 comment added Tejas Patil 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.
Oct 14, 2011 at 3:38 history edited Gareth CC BY-SA 3.0
added 2 characters in body
Jan 18, 2010 at 0:55 comment added dag729 Not always true, as for someone could be just "default"
Jan 15, 2010 at 18:13 history answered NewGuy220 CC BY-SA 2.5