Created attachment 135898 [details] Screencast SUMMARY Another regression vs. KDE 5.18: Kate doesn't restore the last session STEPS TO REPRODUCE 1. Ensure that in the Session settings, "Load last used session" is checked 2. Open two files 3. Exit Kate 4. Launch Kate again OBSERVED RESULT Kate starts with an Untitled blank document EXPECTED RESULT Kate should load the two files that were open when the user exited Kate. SOFTWARE/OS VERSIONS Linux/KDE Plasma: KDE neon 5.21
I've never used this feature before, but it got me curious. If you open some files and save/name a session then it will open the last used one. If you don't save/load a session then you seem to be in a sessionless instance and it therefore will not load the last session, because you weren't technically in a named/saved session.
FWIW Kate is an independent application and not released as a part of Plasma, and also there is no such thing as "KDE 5.18"; there is a Plasma 5.18 though :) Works for me FWIW.
> FWIW Kate is an independent application and not released as a part of Plasma, > and also there is no such thing as "KDE 5.18"; there is a Plasma 5.18 though :) Right, I see `kate` as a separate component at bugs.kde.org. I got confused by branding like "KDE neon 5.21". > If you open some files and save/name a session then it will open the last used one. Sounds like Kate should save the files to the default session if "Load last used session" is checked. If I run it with `-s Default`, it does just that. I believe the behavior of not restoring the session when that "Load last used session" is checked, is counter-intuitive, because the user has no indication that they must save the session before it takes effect.
@Jason: that makes sense from a technical POV, but the handling of the default session has been confusing users for a decade: * bug 268913 * bug 319396 * bug 342057 * bug 332949
Just came across this issue. I don't think it's a reasonable expectation that the user know to create and save their session first so that it can be restored.
This was supposed to have been fixed in Kate 21.12; duping to Bug 268913 which was tracking that. If it's not working for you in a version later than 21.12, please leave a comment there describing specifically what's not working. Thanks! *** This bug has been marked as a duplicate of bug 268913 ***