Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I recently added Cairo Dock to my GNOME Shell in 11.10. Cairo Dock is GREAT, but I'm left with one little problem that I'd like to fix: after installing Cairo Dock, LightDM includes two extraneous entries to non-working desktops. (The entries to working desktops remain unaffected, so I guess I could just ignore the extraneous entries, but...)

So I'd like to remove/edit the extraneous entries in LightDM. I've looked and looked for discussions on how to do so, but haven't had much luck.

Any suggestions on how to go about editing the login menu in 11.10?

share|improve this question
add comment

2 Answers

up vote 19 down vote accepted

The list of sessions is defined by the .desktop files in the folder /usr/share/xsessions

enter image description here

Lets remove GNOME Classic

In a terminal:

cd /usr/share/xsessions
sudo mv gnome-classic.desktop gnome-classic.desktop.backup

This renames the gnome-classic desktop file

Logout - the new list of sessions will look like:

enter image description here

share|improve this answer
    
Thanks so much! A great help!! –  Lexalt Nov 22 '11 at 5:08
add comment
  • Open terminal with Ctrl-Alt-T
  • cd /usr/share/xsessions
  • ls will show you, for example:

    awesome.desktop  gnome-shell.desktop  ubuntu.desktop
    gnome.desktop    ubuntu-2d.desktop
  • Use sudo rm lubuntu.desktop (or whatever) to remove the ones you don't need any longer.

  • Logout and you should see the changes -- if not, reboot and you will see them.
share|improve this answer
    
Thanks! It also worked for my openbox environment that I removed. –  Emerson Hsieh Jun 10 '12 at 1:25
add comment

Your Answer

 
discard

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.