Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I tell if it's ubuntu or kubuntu that is installed ?

I will install chmsee on ubuntu , but kchmviewer on kubuntu.

share|improve this question
up vote 2 down vote accepted

echo $DESKTOP_SESSION should tell you what Desktop Environment is in use. ubuntu == some gtk based DE, unity by default. The others I don't know off-hand, but that environment variable is there for exactly this purpose.

share|improve this answer
Ubuntu could also be GNOME. Unless you see KDE as the desktop environment, or LXDE, or XFCE, it's Ubuntu – Thomas Ward Apr 29 '12 at 4:33
True...I'll edit to address that, but either way both gnome and unity are gtk based toolkits, which is what the OP was after – RobotHumans Apr 29 '12 at 4:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.