Bug 483918 - Removed applications with desktop-file-based shortcuts are not removed from KCM until reboot
Summary: Removed applications with desktop-file-based shortcuts are not removed from K...
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_keys (other bugs)
Version First Reported In: 6.0.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-18 17:51 UTC by Nicolas Fella
Modified: 2024-03-22 13:12 UTC (History)
1 user (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 Nicolas Fella 2024-03-18 17:51:42 UTC
STEPS TO REPRODUCE
1. Install an application that defined shortcuts in its desktop file, e.g. Crow Translate
2. Customize one of its shortcuts
3. Uninstall the application
4. Open shortcuts KCM

OBSERVED RESULT
The application still has an entry under "System Services", with empty icon
After a reboot it is gone

EXPECTED RESULT
The entry is gone immediately

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.7
Comment 1 Bug Janitor Service 2024-03-18 22:08:04 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kglobalacceld/-/merge_requests/47
Comment 2 Nicolas Fella 2024-03-22 13:11:31 UTC
Git commit 995052f85acd4cf089c4394aa3901c729c0e4f8b by Nicolas Fella.
Committed on 22/03/2024 at 13:09.
Pushed by nicolasfella into branch 'master'.

Update service-based shortcuts when service database changes

When (un)installing apps detect new apps with shortcuts and
remove shortcuts from no longer installed apps
Related: bug 479730

M  +39   -1    src/globalshortcutsregistry.cpp
M  +2    -0    src/globalshortcutsregistry.h

https://invent.kde.org/plasma/kglobalacceld/-/commit/995052f85acd4cf089c4394aa3901c729c0e4f8b
Comment 3 Nicolas Fella 2024-03-22 13:12:14 UTC
Git commit 3e05eb02cc867b500ae0436824d58fe4feb16c52 by Nicolas Fella.
Committed on 22/03/2024 at 13:12.
Pushed by nicolasfella into branch 'Plasma/6.0'.

Update service-based shortcuts when service database changes

When (un)installing apps detect new apps with shortcuts and
remove shortcuts from no longer installed apps
Related: bug 479730
(cherry picked from commit 995052f85acd4cf089c4394aa3901c729c0e4f8b)

M  +39   -1    src/globalshortcutsregistry.cpp
M  +2    -0    src/globalshortcutsregistry.h

https://invent.kde.org/plasma/kglobalacceld/-/commit/3e05eb02cc867b500ae0436824d58fe4feb16c52