Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have two computers and both have exactly the same behavior. I have the option "load last used session" selected, but every time, Kate starts a new session. What could be causing this?

Here are the permissions of ~/.kde/share/apps

mike@mike-laptop:~/.kde/share/apps$ ls -l
drwx------ 4 mike mike 4096 2011-08-19 10:58 kate

mike@mike-laptop:~/.kde/share/apps$ ls -l kate
-rw------- 1 mike mike 2927 2011-08-19 10:58 metainfos
drwx------ 5 mike mike 4096 2011-03-18 09:49 plugins
drwxr-xr-x 2 mike mike 4096 2011-03-18 09:49 sessions

Also starting kate from the command line produces no output at all.

share|improve this question
If it makes a difference, both computers also have Gnome installed. – Mike Aug 19 '11 at 17:27
up vote 6 down vote accepted

Open ~/.kde/share/config/katerc and verify if these are in there:

Last Session=mysession.katesession 
Restore Window Configuration=true 
Session Exit=save

There has been a long outstanding bug where sometimes some of the settings are not properly saved.

share|improve this answer
This was exactly it. Except that Session Exit wasn't there at all and it worked without it too. Now, any idea why this would happen on two separate computers? Would installing kubuntu-desktop on top of ubuntu-desktop have anything to do with it? – Mike Aug 19 '11 at 17:53
it should not. kubuntu and ubuntu -should- be seperate systems not touching each other. But I saw the katerc mentioned in a bug as sometimes not saving settings and quickly also found these 3 settings related to sessions. It was more of a guess than anything else ;) Glad it workd out! – Rinzwind Aug 19 '11 at 17:57
Well I'm glad it worked. It just seems strange to me that it has this behavior on two separate computers, one of which is a fresh install of 11.04. – Mike Aug 19 '11 at 17:58
For some reason the setting Last Session got reverted on both computers to being empty a day or two later. I had to set it again. – Mike Oct 18 '11 at 16:04
Same here, Last Session gets erased when kate is not running and I open a file with Dolphin. I am afraid this is not considered a bug... See – Damien Nov 21 '14 at 13:50

Your Answer


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.