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 installed Xubuntu and used one of shutdown functions when shutdown it.

It looks as follow image:

logout

I leaved tick and now I always login at this session.

But I want to leave this session and login as typical.

  • How to discard this session, and login without saved session?
share|improve this question
add comment

2 Answers 2

Xubuntu stores your session information in ~/.cache/sessions. If you want to start with a clean slate, you need to remove the information present in that folder.

To do so:

  • Log out of Xubuntu.
  • While at the login screen, press Ctrl+Alt+F1 to open a console. (You may need to press Enter once to get the login prompt.) Enter your usual username and password.
  • Create a temporary folder, Backup, on your Desktop. Return to your home folder. From there, issue the following command to recursively copy the contents of ~/.cache/sessions to your desktop (as a safety measure):
    • mkdir ~/Desktop/Backup
    • cp -r ~/.cache/sessions/* ~/Desktop/Backup
  • Delete the contents of the sessions subfolder:
    • rm -rf ~/.cache/sessions/*
  • Close the console by pressing Ctrl+Alt+F7
  • You'll see the usual login screen again. Now, when you login, you'll have a clean slate.

Note that there is a GUI method available but some people find it doesn't work as reliably as the console route.

share|improve this answer
    
can I do it when login as typical? Coz console didn't display after Cntr + Alt + F1 –  nazar_art Dec 28 '13 at 10:26
    
try F2 instead of F1 –  user25656 Dec 28 '13 at 10:30
    
You should not try when logged in as normal because the session files will be in use. By logging out of the Xubuntu/Xfce session, these files are not in use (and can be accessed by the virtual terminal). –  user25656 Dec 28 '13 at 10:39
add comment

You should erase old sessions and make session folder read-only: $ rm .cache/session/* $ chmod -w .cache/session

See my full answer here: http://askubuntu.com/a/469808/27057

share|improve this answer
    
I want to delete saved one. How to achieve this? –  nazar_art May 21 at 19:02
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.