Bug 460275 - Duplicate Kate Sessions plasmoids
Summary: Duplicate Kate Sessions plasmoids
Status: RESOLVED FIXED
Alias: None
Product: kdeplasma-addons
Classification: Unmaintained
Component: Kate Sessions (other bugs)
Version First Reported In: 5.25.90
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Alexander Lohnau
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-12 06:06 UTC by Jin Liu
Modified: 2022-10-15 16:11 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 Jin Liu 2022-10-12 06:06:48 UTC
SUMMARY
There are two seemingly duplicate Kate Sessions plasmoids:
1. org.kde.plasma.katesessions, in kate package.
2. org.kde.plasma.addons.katesessions, in kdeplasma-addons package.


STEPS TO REPRODUCE
1. install kate
2. install kdeplasma-addons
3. add widget

OBSERVED RESULT
Two Kate Sessions icons in widget list.

EXPECTED RESULT
Only one Kate Sessions.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.25.90
KDE Frameworks Version: 5.99
Qt Version: 5.15.6

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2022-10-12 18:45:25 UTC
Yeah, it was moved from kate to kdeplasma-addons. As those repos have different, non-aligned release schedules the only options were:
1. Window of time during which neither was available
2. A window of time during which both are available

1 would be quite bad, so we opted for 2. I'm afraid there's nothing KDE can do to make this any better, but distros could patch out the one in kate for now if they want.
Comment 2 Alexander Lohnau 2022-10-15 14:09:13 UTC
>but distros could patch out the one in kate for now if they want.

I have added the logic for migrating existing users in https://invent.kde.org/utilities/kate/-/merge_requests/849.  When this has been in testing for a bit, distros could backport it. As long as they are fine assuming that the users will have a recent enough Plasma.
Comment 3 Alexander Lohnau 2022-10-15 16:11:41 UTC
Git commit 214702dd6958a887706108439ae988060a951a0e by Alexander Lohnau.
Committed on 15/10/2022 at 14:07.
Pushed by cullmann into branch 'master'.

Remove Kate Session Applet

With Plasma 5.26, this is shipped applet is shipped as part of kdeplasma-addons under a different id.
Otherwise, Plasma 5.26 and Kate < 22.12 would not have been co-installable.
Consequently we have to adjust the plugin id in the plasma config file that keeps track of the applets.

M  +4    -3    addons/CMakeLists.txt
M  +4    -36   addons/sessionapplet/CMakeLists.txt
D  +0    -2    addons/sessionapplet/Messages.sh
D  +0    -139  addons/sessionapplet/applet/contents/ui/KateSessionsItemDelegate.qml
D  +0    -45   addons/sessionapplet/applet/contents/ui/Menu.qml
D  +0    -155  addons/sessionapplet/applet/contents/ui/katesessions.qml
D  +0    -126  addons/sessionapplet/applet/metadata.desktop
D  +0    -119  addons/sessionapplet/applet/metadata.json
A  +7    -0    addons/sessionapplet/katesession_migration.upd
D  +0    -38   addons/sessionapplet/katesessionsengine.cpp
D  +0    -25   addons/sessionapplet/katesessionsengine.h
D  +0    -77   addons/sessionapplet/katesessionsjob.cpp
D  +0    -30   addons/sessionapplet/katesessionsjob.h
D  +0    -108  addons/sessionapplet/katesessionsmodel.cpp
D  +0    -57   addons/sessionapplet/katesessionsmodel.h
D  +0    -26   addons/sessionapplet/katesessionsservice.cpp
D  +0    -32   addons/sessionapplet/katesessionsservice.h
A  +6    -0    addons/sessionapplet/migrate_kate_sessions_applet_to_kdeplasma-addons.sh
D  +0    -14   addons/sessionapplet/org.kde.plasma.katesessions.operations
D  +0    -126  addons/sessionapplet/plasma-dataengine-katesessions.desktop

https://invent.kde.org/utilities/kate/commit/214702dd6958a887706108439ae988060a951a0e