Bug 418183

Summary: Session does not open previously open files when Kate is started
Product: [Applications] kate Reporter: Mark Gibb <mmegibb>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bugseforuns, justin.zobel, KDE, marekful, meven29
Priority: NOR    
Version: 19.12.2   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:

Description Mark Gibb 2020-02-25 15:18:14 UTC
SUMMARY
Kate will not open previously open files on startup even though I have "Load last used session" under Session Management

STEPS TO REPRODUCE
1. Start Kate and open several files
2. Close Kate
3. Reopen Kate

OBSERVED RESULT
When Kate opens, only one blank tab is present.

EXPECTED RESULT
All previously opened files are open in tabs.

SOFTWARE/OS VERSIONS
Windows: 10 Enterprise

ADDITIONAL INFORMATION
Thanks for developing Kate!
Comment 1 Patrick Silva 2020-02-28 13:17:27 UTC
Same thing with kate 19.12.2 on Arch Linux.
Comment 2 Justin Zobel 2020-11-13 05:08:36 UTC
I've just tested and I cannot reproduce this issue.

Can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved. I'm setting status to "needsinfo" pending your response, please change back to "reported" or "resolved" when you respond, thanks.
Comment 3 Patrick Silva 2020-11-20 10:17:58 UTC
it's still reproducible with kate 20.12 beta on Arch Linux and master on neon unstable.
Comment 4 Mark Gibb 2020-11-20 18:25:57 UTC
Hello, I haven't had a chance to test this again on Windows.  But I do want to note that there was some inconsistency in reproducing this that I never could characterize.
Comment 5 Marcell Fulop 2021-02-26 08:09:46 UTC
I agree it is completely ambiguous and even inconsistent. When "Load last used session" is set, kate always starts with a new, anonymous session (dropping the state of the previous).

However, it is only true until you explicitly start or open a session. From then on, kate will always open that session. 

Even if launched w/o --start. Or if you do a 'kate --startanon', quit that and then just 'kate', it will return to the session from before the anon.

It seems you are stuck to that session. Even if you start a new session (kate menu -> session -> new session), quit kate and 'kate', it returns to the session from before the new session.

This is tested with kate on master.
Comment 6 Méven Car 2021-02-26 13:41:31 UTC

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