How To Remove Useless Logon Sessions From Ubuntu 11.10

Advertisement

Over time, the Ubuntu login screen menu can end up having a lot of unwanted sessions. For example, you might have installed Linux Mint on your Ubuntu 11.10 machine that you might wish to remove, or you might be willing to remove the Gnome Classic logon session. In this post, we will tell you how to get rid of these unwanted entries to clean up your logon screen drop down menu.

Before

To get started, open Terminal and navigate to /usr/share/xsessions/ by entering this command:

cd /usr/share/xsessions

Once done, enter this command to list all the installed Ubuntu sessions.

ls

Terminal

In order to remove a login session from your logon screen menu, you will require removing or renaming the .desktop file. For example, you can remove a session by renaming it or entering its name with the below command (e.g., gnome-classic):

sudo mv gnome-classic.desktop gnome-classic.desktop-backup

Alternatively, you can simply remove the session entirely (instead of renaming it) by entering the following command format in Terminalsudo rm session name.desktop. For example, the below command can be used to remove gnome-classic session from the Ubuntu logon screen.

sudo rm gnome-classic.desktop
After
[via Ubuntu Sharing]

Advertisement
  • Mr-Happy

    Didn’t know this one. Great tip. Thanks!

  • Jack

    I was looking more than two hours to find this solutin. Thank You sooo much!!!!!!

  • Shuaib Kunji

    Thanks. Finally a working solution