I just upgraded to Ubuntu 17.10 from 17.04 (previous version with gnome, not Unity). Now after the updated in the login I have several options
- Gnome
- Gnome Classic
- Ubuntu
etc... how I can remove everything referring to the old GNOME if the session Ubuntu comes with GNOME? I'm currently using only the Ubuntu on Xorg option.
Like @muru stated in his comment you have files for all sessions in your
/usr/share/xsession
directory. Just renaming them sadly does not suffice to make them go away (at least in my case) so remove them or move them somewhere else in case you want to keep them. The directory should be similar to this here just with your choice of what you want to keep (example below taken from my machine).The symlink in there is your actual choice of desktop environment so only remove the other files and keep the file the symlink is pointing to intact.
if you dont want to remove the files you can as well simply remove all permissions from the files in question (as stated by @PJSingh) by:
After that you not even see the cogwheel symbol anymore when you log in.
To remove GNOME Classic from Ubuntu 17.10 or earlier, run this in a terminal:
To remove the vanilla GNOME session, run