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 tried gnome-shell but didn't quite like it. After removing gnome-shell, I still have them in login menu. However, upon logging in with any gnome option, I get to the usual Unity desktop.

I had purged gnome-shell using apt-get, but seems like some component is still remaining.

How do I remove gnome login options from lightdm login screen?

share|improve this question
up vote 3 down vote accepted

You can remove them from /usr/share/xsessions I believe.

share|improve this answer
That, indeed, is where lightdm get's the list from. – John S Gruber Aug 21 '12 at 2:38
But i would still be having unnecessary gnome components installed, right? – Ravi S Ghosh Aug 23 '12 at 9:37
I had removed the files from /usr/share/xsessions and Gnome login options were gone from the login screen. Later, I removed couple of packages (gnome-session-fallback, gnome-session, gnome-session-common, gnome-media, language-pack-gnome-en) and then all the options including Ubuntu were gone. I was not able to login in graphical mode. Then I logged in in recovery and installed the above packages back. Now, I have all the gnome login options too. Which package should I remove to get rid of gnome sessions in login options? – Ravi S Ghosh Aug 28 '12 at 21:31
I think you probably removed some important packages there. Purge of gnome shell and editing the xsessions directory should have got rid of Gnome shell install and associated lightdm entries. Unity is a shell interface for the Gnome environment, so deleting core packages will break it. – Mups Sep 5 '12 at 12:43
So, remove the annoying entries from xsessions and you'll be back how it started, with no wasted drive space (as you already got rid of gnome shell). – Mups Sep 5 '12 at 12:46

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.