Ubuntu – How to remove some sessions from the session list in Xubuntu

sessionxubuntu

When logging in to Xubuntu, I get a selection list of saved sessions, most of them is outdated old stuff.

I hit the delete button in a sportive manner. I tried a click to the left, and just a click to the right – no deletion possible.

I went through system menus and menu sections (and the system section of the menu).

Note: Not related: How to remove session entries from LightDM? or Managing the login screen's sessions list which links to it – they handle session-classes like xubuntu vs. xfce, gnome, kde – not different xfce-sessions.

Note: I want to remove some sessions, not all of them. I don't want to start with the session-list deactivated. I have 5 entries and want to remove 3 of them.

Best Answer

Go to $HOME/.cache/sessions and open the latest file with the name xfce-session-yourdesktopname in a text editor.

All your sessions are listed in the file by name in this format:

[Session: Default] 

or

[Session:somename]

Select the entire set of lines from [Session:somename] to the next blank line (including the [Session:somename] line and delete them. Save the file.

Related Question