If I have a couple of open documents in Kate, don't exit the application manually and restart KDE, the open documents are saved and reopened, which is fine. If I have a couple of open documents in Kate and close the application (exactly by clicking the cross in the upper right corner) and reopen Kate, it starts a new session, although there is set the "Load last-used session" flag in its settings. This is not like expected. I would expect Kate to reopen the last opened documents also. Reproducible: Always Steps to Reproduce: 1. In the Kate settings, section Sessions, set the "Load last-used session" flag 2. Open a couple of documents (or just one) in Kate 3. Close the Kate application window regularly 4. Reopen Kate Actual Results: Kate starts with a new session, no open last documents Expected Results: Kate should reopen the documents of the last session
Reproduced. Arch Linux 64-bit Kate 16.04.2 KDE Frameworks 5.22.0 Qt 5.6.1 xcb wm
I think the confusing stuff is: If you have started Kate first with the standard session you will have some unsaved new session. That will not be remembered just because you alter the setting. To be able to re-use it you must first save the session in the "Sessions" menu, then it will be auto-loaded again if that setting you chose is set. (or you can manually choose it in the session chooser).
*** This bug has been marked as a duplicate of bug 268913 ***