Bug 436085 - Newly created session has all plugins disabled
Summary: Newly created session has all plugins disabled
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: sessions (show other bugs)
Version: 20.12.3
Platform: Other All
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-23 09:06 UTC by Gleb Popov
Modified: 2022-06-16 18:46 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 22.08.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gleb Popov 2021-04-23 09:06:44 UTC
When I start Kate from the command line and pass -s option with unknown session name, it creates a new session. However, no plugins are enabled by default, which is a bit confusing and absolutely not neat.

At the same time, when creating a new session with GUI, it uses default plugin set.


STEPS TO REPRODUCE
1. kate -s my-new-session somefile.cpp

OBSERVED RESULT

1. Kate opens and the session is created, but no plugins are enabled. For instance, there is no side panel at all, because "Project" and "File Browser" plugins are disabled.
2. Go to .local/share/kate/sessions and open my-new-session.katesession
3. The [Kate Plugins] section is filled with "false" values.

EXPECTED RESULT

The plugins section is filled with the same values as other .katesession's created with GUI.
Comment 1 Christoph Cullmann 2021-06-01 21:01:11 UTC
This merge request would fix that as a side-effect

https://invent.kde.org/utilities/kate/-/merge_requests/424
Comment 2 Christoph Cullmann 2022-06-16 17:22:36 UTC
Git commit 68bf53945c9b908fa9a9bc23590864205d0615c4 by Christoph Cullmann.
Committed on 16/06/2022 at 17:22.
Pushed by cullmann into branch 'master'.

ensure new sessions at have the default plugins

ATM if you start kate via

kate -n -s sjdfjskljfklsjdlf

and the session doesn't exist, even the default plugin
loading state is lost

M  +1    -1    apps/lib/katepluginmanager.cpp

https://invent.kde.org/utilities/kate/commit/68bf53945c9b908fa9a9bc23590864205d0615c4
Comment 3 Christoph Cullmann 2022-06-16 18:46:40 UTC
This should do the job.