Bug 332949 - Kate doesn't reopen last opened documents after exiting regularly
Summary: Kate doesn't reopen last opened documents after exiting regularly
Status: RESOLVED DUPLICATE of bug 268913
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: 16.04.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-02 08:23 UTC by René Krell
Modified: 2022-07-21 16:54 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***