Bug 332949

Summary: Kate doesn't reopen last opened documents after exiting regularly
Product: [Applications] kate Reporter: RenĂ© Krell <renda.krell>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: christoph, ilmari.lauhakangas, nate
Priority: NOR    
Version: 16.04.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description René Krell 2014-04-02 08:23:40 UTC
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
Comment 1 Buovjaga 2016-06-19 10:39:36 UTC
Reproduced.

Arch Linux 64-bit
Kate 16.04.2
KDE Frameworks 5.22.0
Qt 5.6.1
xcb wm
Comment 2 Christoph Cullmann 2019-08-24 20:18:22 UTC
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).
Comment 3 Nate Graham 2022-07-21 16:54:14 UTC

*** This bug has been marked as a duplicate of bug 268913 ***