[plasmashell] [Bug 494542] Option "Add to Favorites" is not available to put a app icon in Application Menu as favorite after uninstalling and reinstalling the application
https://bugs.kde.org/show_bug.cgi?id=494542 cwo changed: What|Removed |Added Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas |ma/plasma-workspace/-/commi |ma/plasma-workspace/-/commi |t/9c30f7d107ff0fe139dffefac |t/cfeabb4bf121b2819a2c46e86 |bb913a39d397feb |cc0544bcd518952 --- Comment #8 from cwo --- Git commit cfeabb4bf121b2819a2c46e86cc0544bcd518952 by Christoph Wolk. Committed on 26/05/2026 at 19:51. Pushed by cwo into branch 'Plasma/6.7'. applets/kicker: refresh kastatsfavoritesmodel after ksycoca change KAStatsFavoritesModel listens to ksycoca changes, so that any uninstalled applications can be removed from the local data structure. (Albeit with an error that makes it only remove some of the cache entries). The problem is that this is not enough; the Activities database maintains entries after they are removed, so if an uninstalled favorite is reinstalled, it should immediately show up in the favoritesmodel again (as it will after restarting or switching activities). This is particularly important as some online updates may be registered as a sequence of uninstallations and reinstallations of the software, so an update may (temporarily) remove it from the favorites. Instead, let's just regenerate the internal model when the installed apps change - we'd need to do much of the work anyway, and this is a lot simpler than manually re-establishing the sync. We also do a reset for the AppsModel in such cases (which typically has a lot more entries) and do a similar reset whenever the activity changes so adding even more complexity to this case to save a small amount of extra work does not seem necessary. Related: bug 517167, bug 503912 See also https://invent.kde.org/plasma/plasma-workspace/-/work_items/184 (cherry picked from commit 9c30f7d107ff0fe139dffefacbb913a39d397feb) Co-authored-by: Christoph Wolk M +12 -23 applets/kicker/kastatsfavoritesmodel.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/cfeabb4bf121b2819a2c46e86cc0544bcd518952 -- You are receiving this mail because: You are watching all bug changes.
[plasmashell] [Bug 494542] Option "Add to Favorites" is not available to put a app icon in Application Menu as favorite after uninstalling and reinstalling the application
https://bugs.kde.org/show_bug.cgi?id=494542 cwo changed: What|Removed |Added CC||[email protected] --- Comment #7 from cwo --- (In reply to Anthony Fieroni from comment #6) > Bugfix still has to be backported to non-released version i.e. 6.7 So it does, thanks! -- You are receiving this mail because: You are watching all bug changes.
[plasmashell] [Bug 494542] Option "Add to Favorites" is not available to put a app icon in Application Menu as favorite after uninstalling and reinstalling the application
https://bugs.kde.org/show_bug.cgi?id=494542 Anthony Fieroni changed: What|Removed |Added CC||[email protected] --- Comment #6 from Anthony Fieroni --- Bugfix still has to be backported to non-released version i.e. 6.7 -- You are receiving this mail because: You are watching all bug changes.
[plasmashell] [Bug 494542] Option "Add to Favorites" is not available to put a app icon in Application Menu as favorite after uninstalling and reinstalling the application
https://bugs.kde.org/show_bug.cgi?id=494542 Nate Graham changed: What|Removed |Added Version||6.8.0 Fixed/Implemented|| In|| -- You are receiving this mail because: You are watching all bug changes.
[plasmashell] [Bug 494542] Option "Add to Favorites" is not available to put a app icon in Application Menu as favorite after uninstalling and reinstalling the application
https://bugs.kde.org/show_bug.cgi?id=494542 cwo changed: What|Removed |Added Latest Commit||https://invent.kde.org/plas ||ma/plasma-workspace/-/commi ||t/9c30f7d107ff0fe139dffefac ||bb913a39d397feb Resolution|--- |FIXED Status|ASSIGNED|RESOLVED --- Comment #5 from cwo --- Git commit 9c30f7d107ff0fe139dffefacbb913a39d397feb by Christoph Wolk. Committed on 18/05/2026 at 07:46. Pushed by cwo into branch 'master'. applets/kicker: refresh kastatsfavoritesmodel after ksycoca change KAStatsFavoritesModel listens to ksycoca changes, so that any uninstalled applications can be removed from the local data structure. (Albeit with an error that makes it only remove some of the cache entries). The problem is that this is not enough; the Activities database maintains entries after they are removed, so if an uninstalled favorite is reinstalled, it should immediately show up in the favoritesmodel again (as it will after restarting or switching activities). This is particularly important as some online updates may be registered as a sequence of uninstallations and reinstallations of the software, so an update may (temporarily) remove it from the favorites. Instead, let's just regenerate the internal model when the installed apps change - we'd need to do much of the work anyway, and this is a lot simpler than manually re-establishing the sync. We also do a reset for the AppsModel in such cases (which typically has a lot more entries) and do a similar reset whenever the activity changes so adding even more complexity to this case to save a small amount of extra work does not seem necessary. Related: bug 517167, bug 503912 See also https://invent.kde.org/plasma/plasma-workspace/-/work_items/184 M +12 -23 applets/kicker/kastatsfavoritesmodel.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/9c30f7d107ff0fe139dffefacbb913a39d397feb -- You are receiving this mail because: You are watching all bug changes.
[plasmashell] [Bug 494542] Option "Add to Favorites" is not available to put a app icon in Application Menu as favorite after uninstalling and reinstalling the application
https://bugs.kde.org/show_bug.cgi?id=494542 Bug Janitor Service changed: What|Removed |Added Status|CONFIRMED |ASSIGNED --- Comment #4 from Bug Janitor Service --- A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/6586 -- You are receiving this mail because: You are watching all bug changes.
[plasmashell] [Bug 494542] Option "Add to Favorites" is not available to put a app icon in Application Menu as favorite after uninstalling and reinstalling the application
https://bugs.kde.org/show_bug.cgi?id=494542 --- Comment #3 from Bug Janitor Service --- A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/6582 -- You are receiving this mail because: You are watching all bug changes.
[plasmashell] [Bug 494542] Option "Add to Favorites" is not available to put a app icon in Application Menu as favorite after uninstalling and reinstalling the application
https://bugs.kde.org/show_bug.cgi?id=494542 Villemur Clément changed: What|Removed |Added CC||[email protected] ||om -- You are receiving this mail because: You are watching all bug changes.
[plasmashell] [Bug 494542] Option "Add to Favorites" is not available to put a app icon in Application Menu as favorite after uninstalling and reinstalling the application
https://bugs.kde.org/show_bug.cgi?id=494542 John Veness changed: What|Removed |Added CC||[email protected] -- You are receiving this mail because: You are watching all bug changes.
[plasmashell] [Bug 494542] Option "Add to Favorites" is not available to put a app icon in Application Menu as favorite after uninstalling and reinstalling the application
https://bugs.kde.org/show_bug.cgi?id=494542 Rick Stockton changed: What|Removed |Added CC||rickstockton@reno-computerh ||elp.com -- You are receiving this mail because: You are watching all bug changes.
[plasmashell] [Bug 494542] Option "Add to Favorites" is not available to put a app icon in Application Menu as favorite after uninstalling and reinstalling the application
https://bugs.kde.org/show_bug.cgi?id=494542 [email protected] changed: What|Removed |Added CC||[email protected] --- Comment #2 from [email protected] --- I was about to create a duplicate issue, but I found this. Here's the bug report I was writing: SUMMARY I've noticed that when uninstalling a favorited application, it is removed from the favorites menu visually; however, if the app is reinstalled, it is not added back to the favorites, but it is also impossible to add it back manually, as it will always show "Remove from Favorites" in the context menu, which does not do anything and does not change. STEPS TO REPRODUCE 1. Add an application to the favorites menu by right clicking it in the launcher and selecting "Add to Favorites" 2. Uninstall the application. 3. Reinstall the application. OBSERVED RESULT Right click the application in the launcher and observe that "Add to Favorites" is not available, but "Remove from Favorites" is. "Remove from Favorites" does not actually do anything, but does not change back to "Add to Favorites" until the computer (or maybe just the environment) is restarted. EXPECTED RESULT Uninstalling an application removes it from Favorites automatically, as expected. However, it is expected that if it is not added back automatically upon reinstalling, it should be able to be added back manually. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 6.5.5 KDE Frameworks Version: 6.22.0 Qt Version: 6.10.1 Kernel Version: 6.14.0-rt3-arch1-6-rt (64-bit) Graphics Platform: Wayland Processors: 16 × AMD Ryzen 7 5700G with Radeon Graphics Memory: 32 GiB of RAM (31.2 GiB usable) Graphics Processor: AMD Radeon RX 6650 XT -- You are receiving this mail because: You are watching all bug changes.
[plasmashell] [Bug 494542] Option "Add to Favorites" is not available to put a app icon in Application Menu as favorite after uninstalling and reinstalling the application
https://bugs.kde.org/show_bug.cgi?id=494542 Nate Graham changed: What|Removed |Added Version|6.3.2 |6.2.0 -- You are receiving this mail because: You are watching all bug changes.
[plasmashell] [Bug 494542] Option "Add to Favorites" is not available to put a app icon in Application Menu as favorite after uninstalling and reinstalling the application
https://bugs.kde.org/show_bug.cgi?id=494542 toni_rocha changed: What|Removed |Added Version|6.2.0 |6.3.2 -- You are receiving this mail because: You are watching all bug changes.
[plasmashell] [Bug 494542] Option "Add to Favorites" is not available to put a app icon in Application Menu as favorite after uninstalling and reinstalling the application
https://bugs.kde.org/show_bug.cgi?id=494542 Nate Graham changed: What|Removed |Added Target Milestone|--- |1.0 Component|Icons |Application Launcher ||(Kickoff) Ever confirmed|0 |1 CC||[email protected], ||[email protected], ||[email protected], ||[email protected] Product|Breeze |plasmashell Assignee|[email protected] |[email protected] Status|REPORTED|CONFIRMED --- Comment #1 from Nate Graham --- Can reproduce the issue as described in the steps to reproduce and depicted in the screen recording. -- You are receiving this mail because: You are watching all bug changes.
