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

I would like to add a new session to the login screen (the thing where you select "Ubuntu, Ubuntu Classic, etc" to install a new GUI on. How can I do this?

share|improve this question
This answer and another answer may help you. – Takkat Jul 26 '11 at 6:38
up vote 8 down vote accepted

The list on the logon screen is populated from the desktop files in the folder /usr/share/xsessions

The format of these files are similar - here is the Unity-2D desktop file

[Desktop Entry]
Name=Ubuntu Classic (No effects)
Comment=This session logs you into GNOME with the traditional panel without any 
graphical effect.
Exec=gnome-session --session=2d-gnome

All the files are root:root owned.

Creating or deleting desktop files in this folder creates or removes an entry in the drop-down list respectively.


share|improve this answer
That's exactly what I needed; thanks. – TreefrogInc Jul 26 '11 at 14:43

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.