Bug 362864

Summary: Kate does not save Sidebar state in configuration settings files
Product: [Applications] kate Reporter: Bob Wya <bob.mt.wya>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ilmari.lauhakangas
Priority: NOR    
Version: 5.0.0   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Bob Wya 2016-05-09 19:33:48 UTC
Using Kate 16.04.0

Everytime I start Kate it opens the documents Sidebar. I don't use this feature... So I turn it off.
But because this setting is not saved anywhere (I've checked the before/after Kate configuration files with diff). The Sidebar reappears the next time I open Kate...




Reproducible: Always

Steps to Reproduce:
1. Start Kate session (either from shell or application menu/krunner)
2. Close Sidebar
3. In Kate settings menu : enable save Window state in Session / Load last used Session
4. Close Kate
5. Restart Kate (as per 1.)

Actual Results:  
Re-started Kate session has Sidebar enabled.

Expected Results:  
Re-started Kate session remembers Sidebar state. Therefore Kate SIdebar is disabled.

This was NOT a "feature" in the KDE 4.x branch of Kate!! If I turned off the Sidebar - it would STAY turned OFF - the next time I opened Kate...
Comment 1 Buovjaga 2016-07-07 11:32:39 UTC
I don't have this problem.

Arch Linux 64-bit
Kate 16.04.2
KDE Frameworks 5.23.0
Qt 5.7
xcb wm
Comment 2 Bob Wya 2016-07-07 14:31:40 UTC
(In reply to Buovjaga from comment #1)
> I don't have this problem.
> 
> Arch Linux 64-bit
> Kate 16.04.2
> KDE Frameworks 5.23.0
> Qt 5.7
> xcb wm

Ditto on the base packages and Kate version. So maybe it's a Plasma 5 specific issue?

Some more testing ...
1. Ensure you have *NO* saved Kate sessions
2. Start Kate session (either from shell or application menu/krunner)
3. Disable plugin "File system browser"
4. In Kate settings menu : enable save Window state in Session / Load last used Session
5. Sessions -> Save session (i.e. save to a blank/default session)
6. Close Kate
7. Restart Kate (as per 2.)

In my mind (!!) a blank session name should still be saved to a "default" location.

But even when I used a named session and the above steps - none of my plugins are staying enabled. Even when I manually reload the session... The other Kate settings are being restored successfully. Very weird??!!

I've tried cleaning out the "cruft" - removing my kate* config files from ~/.config.
There are no KDE 4 config kate* config files in my ~/.kde4 profile directories.

So it I guess it might be a cache issue - with Plasma 5. I'll try cleaning this out next!!
Comment 3 Buovjaga 2016-07-07 19:22:26 UTC
(In reply to Bob Wya from comment #2)
> Some more testing ...
> 1. Ensure you have *NO* saved Kate sessions
> 2. Start Kate session (either from shell or application menu/krunner)
> 3. Disable plugin "File system browser"
> 4. In Kate settings menu : enable save Window state in Session / Load last
> used Session
> 5. Sessions -> Save session (i.e. save to a blank/default session)
> 6. Close Kate
> 7. Restart Kate (as per 2.)
> 
> In my mind (!!) a blank session name should still be saved to a "default"
> location.

Yeah, I don't get any session after those steps in "Manage sessions".

There are these relevant reports:
Bug 319396 - Kate should ask for a session name upon clicking "Save session" in an unnamed session
Bug 268913 - Sessions are not resumed when closing and reopening the window
Comment 4 Bob Wya 2016-07-07 19:25:50 UTC

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