Bug 418183 - Session does not open previously open files when Kate is started
Summary: Session does not open previously open files when Kate is started
Status: RESOLVED DUPLICATE of bug 268913
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: 19.12.2
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-25 15:18 UTC by Mark Gibb
Modified: 2021-02-26 13:41 UTC (History)
5 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 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 ***