Summary: | Unable to remove/unpin documents/apps from Application Menu after deleting the document/app from system | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Ivar Erikson <kiwimisc> |
Component: | Application Menu (Kicker) widget | Assignee: | Eike Hein <hein> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bugseforuns, mfraz74+kde, nate, plasma-bugs, qydwhotmail |
Priority: | NOR | ||
Version First Reported In: | 5.14.4 | ||
Target Milestone: | 1.0 | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/plasma-workspace/-/commit/d1896f5ac7367a96d710afcd84278760678f36f0 | Version Fixed In: | 6.4.1 |
Sentry Crash Report: |
Description
Ivar Erikson
2019-01-03 13:26:12 UTC
Confirmed here. 1. open a png file 2. open kicker > hover over "recent documents" 3. right click on the file used in the step 1 4. click "Add to favorites" 5. delete the file used in the step 1 6. open kicker, right click on the favorite created in the step 4 7. click "Remove from favorites" Result: the favorite is not removed Operating System: Arch Linux KDE Plasma Version: 5.15.3 KDE Frameworks Version: 5.56.0 Qt Version: 5.12.2 Can confirm with current git master. Still there in KDE Plasma Version: 5.27.10. Only way to delete it is to manually edit .config/kactivitymanagerd-statsrc Log out and then log back in again. A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5595 Git commit da244b8764cde5509598965f24804bbaa5e0939f by Christoph Wolk. Committed on 23/06/2025 at 19:13. Pushed by cwo into branch 'master'. applets/kicker: resolve non-existing files to their url Kicker's PAStats-based favorites do some normalization to, among others, resolve symlinked files to their resolved path to reduce duplicates. However, if the file doesn't exist, it essentially just gives up. This is a problem when trying to remove favorites that were deleted: while the un-favoriting in PAStats succeeds, kicker can't remove it from its own model because it can't identify the file by its url if it doesn't exist. So removed favorites confusingly stick around until the next plasmashell restart. Instead, we take the base url in that case - as the entries already have gone through the process, the url is their real url anyway. FIXED-IN: 6.4.1 M +2 -0 applets/kicker/kastatsfavoritesmodel.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/da244b8764cde5509598965f24804bbaa5e0939f Git commit d1896f5ac7367a96d710afcd84278760678f36f0 by Christoph Wolk. Committed on 23/06/2025 at 20:03. Pushed by cwo into branch 'Plasma/6.4'. applets/kicker: resolve non-existing files to their url Kicker's PAStats-based favorites do some normalization to, among others, resolve symlinked files to their resolved path to reduce duplicates. However, if the file doesn't exist, it essentially just gives up. This is a problem when trying to remove favorites that were deleted: while the un-favoriting in PAStats succeeds, kicker can't remove it from its own model because it can't identify the file by its url if it doesn't exist. So removed favorites confusingly stick around until the next plasmashell restart. Instead, we take the base url in that case - as the entries already have gone through the process, the url is their real url anyway. FIXED-IN: 6.4.1 (cherry picked from commit da244b8764cde5509598965f24804bbaa5e0939f) Co-authored-by: Christoph Wolk <cwo.kde@posteo.net> M +2 -0 applets/kicker/kastatsfavoritesmodel.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/d1896f5ac7367a96d710afcd84278760678f36f0 |