Bug 441188 - Enabled plugins are reset when restarting Kate
Summary: Enabled plugins are reset when restarting Kate
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: Git
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-19 18:58 UTC by Noah Davis
Modified: 2021-08-21 16:22 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Noah Davis 2021-08-19 18:58:28 UTC
SUMMARY
If you enable or disable a plugin, its state is reset after restarting Kate.

STEPS TO REPRODUCE
1. Open Kate
2. Go to Settings -> Configure Kate...
3. Go to Plugins category
4. Enable/disable any plugin.
5. Click OK
6. Restart Kate

OBSERVED RESULT
Enabled plugins are now disabled again. Disabled plugins are now enabled again.

EXPECTED RESULT
Plugins should stay enabled or disabled when I change their state.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20210810
KDE Plasma Version: 5.22.80
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2
Kernel Version: 5.13.8-1-default (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 4800H with Radeon Graphics
Memory: 30.8 GiB of RAM
Graphics Processor: AMD RENOIR
Comment 1 Noah Davis 2021-08-19 19:00:12 UTC
In case it's relevant, these are the permissions for my Kate config files in ~/.config:

❯ ls -la | rg kate
drwxr-xr-x noah users   18 B  Wed Jan 20 22:54:01 2021 kate
.rw------- noah users   79 KB Thu Aug 19 14:55:32 2021 katemetainfos
.rw------- noah users  6.8 KB Thu Aug 19 14:55:35 2021 katerc
.rw------- noah users   56 B  Sat Jan 16 05:52:24 2021 kateschemarc
.rw------- noah users  419 B  Sat Jan 16 08:40:45 2021 katevirc
Comment 2 Noah Davis 2021-08-19 19:06:29 UTC
I am closing Kate using the X button in the titlebar or Ctrl+Q. From what I can see, Kate is not crashing when closed, so there's no obvious reason why the settings aren't being saved.
Comment 3 Waqar Ahmed 2021-08-20 12:08:27 UTC
This is due to reworking of Sessions in kate.
Comment 4 Christoph Cullmann 2021-08-21 16:22:58 UTC
cullmann wrote:
@bug_id = 441188
@bug_status = RESOLVED
@resolution = FIXED
@cf_commitlink = https://invent.kde.org/utilities/kate/commit/0dbfebcb4b0af998f9e2907c5bc185af31d03b5f

Git commit 0dbfebcb4b0af998f9e2907c5bc185af31d03b5f by Christoph Cullmann.
Committed on 21/08/2021 at 16:20.
Pushed by cullmann into branch 'master'.

Revert "sessions: upgrade anonymous session to regular one"

This reverts commit 88c6ab08f48fd3c088470716a1d175496a3960d2.

Reverts session behavior back to 21.08 release style

we need to re-think how we really want to handle that

M  +1    -18   kate/autotests/session_manager_test.cpp
M  +0    -1    kate/autotests/session_manager_test.h
M  +0    -1    kate/data/kateui.rc
M  +5    -25   kate/kateapp.cpp
M  +0    -4    kate/katemainwindow.cpp
M  +0    -9    kate/katepluginmanager.cpp
M  +0    -1    kate/katepluginmanager.h
M  +2    -2    kate/katestashmanager.cpp
M  +2    -6    kate/main.cpp
M  +2    -2    kate/session/katesession.cpp
M  +0    -2    kate/session/katesession.h
M  +3    -1    kate/session/katesessionmanagedialog.cpp
M  +50   -101  kate/session/katesessionmanager.cpp
M  +13   -53   kate/session/katesessionmanager.h

https://invent.kde.org/utilities/kate/commit/0dbfebcb4b0af998f9e2907c5bc185af31d03b5f