DESCRIPTION If I remove an app that's added to the Favorites section of the Application Launcher widget by default, while the widget does follow my request, once I reboot my computer the very app I removed from that section magically appears in it again. STEPS TO REPRODUCE 1. Open Application Launcher, look into Favorites 2. Right-click on a default KDE app, like Dolphin 3. Click on "Remove from Favorites" 4. Reboot the computer OBSERVED RESULT Dolphin reappears in the Favorites section of the widget after that reboot. EXPECTED RESULT Dolphin would remain removed from that section of the widget. This also applies to apps like System Settings, as they're added to Favorites by default. SOFTWARE/OS VERSIONS Operating System: Gentoo Linux (~amd64) KDE Plasma Version: 6.8.1 KDE Frameworks Version: 6.31.0 Qt Version: 6.11.2 ADDITIONAL INFORMATION I'm not sure when this problem actually started happening exactly, it was only in 6.8.1 that I decided to perform these steps to reproduce it. The "Possible Duplicates" thing that appears while I'm writing this also list bug 385814, which makes me wonder if this is a regression. It seems to be an old bug, too (and apparently I shouldn't re-open closed bugs, so I'm writing this one now!).
I have a theory; may I ask you to run the following command with dolphin in favourites, remove Dolphin from favorites, run it again and paste both outputs? for r in org.kde.dolphin.desktop applications:org.kde.dolphin.desktop; do echo "$r: $(dbus-send --session --print-reply --dest=org.kde.ActivityManager /ActivityManager/Resources/Linking org.kde.ActivityManager.ResourcesLinking.IsResourceLinkedToActivity string:org.kde.plasma.favorites.applications string:$r string::global | tail -1)"; done
Also, can you run plasmashell with the env variable QT_LOGGING_RULES="org.kde.plasma.kicker.debug=true" set, and post the system log output of starting plasmashell and removing the default favorite?
(In reply to Niccolò Venerandi from comment #1) > may I ask you to run the following command with dolphin in > favourites, remove Dolphin from favorites, run it again and paste both > outputs? > > for r in org.kde.dolphin.desktop applications:org.kde.dolphin.desktop; do > echo "$r: $(dbus-send --session --print-reply --dest=org.kde.ActivityManager > /ActivityManager/Resources/Linking > org.kde.ActivityManager.ResourcesLinking.IsResourceLinkedToActivity > string:org.kde.plasma.favorites.applications string:$r string::global | tail > -1)"; done before: ``` org.kde.dolphin.desktop: boolean true applications:org.kde.dolphin.desktop: boolean false ``` after: ``` org.kde.dolphin.desktop: boolean true applications:org.kde.dolphin.desktop: boolean false ``` so the output doesn't change··· does that say something or is that how it's supposed to work?
(In reply to cwo from comment #2) > Also, can you run plasmashell with the env variable > QT_LOGGING_RULES="org.kde.plasma.kicker.debug=true" set, and post the system > log output of starting plasmashell and removing the default favorite? https://pastebin.com/igeXVkNV i don't seem to get anything relevant, is it really supposed to be `org.kde.plasma.kicker.debug=true` or actually `org.kde.plasma.kickoff.debug=true`?
(In reply to ruby from comment #3) > org.kde.dolphin.desktop: boolean true > applications:org.kde.dolphin.desktop: boolean false You have Dolphin favorited as org.kde.dolphin.desktop, not as applications:org.kde.dolphin.desktop. That's quite unusual. It used to be this way many years ago, but was migrated to the new form so long ago that even the migration code was dropped. Wait, playing around with some conditions here - is it possible that the software was not installed when you logged in for the first time, and then you installed it later? FWIW, kicker is correct - our launchers all use the same backend, which is named after kicker, so the logs for (the C++ side) of all three are under that name. I don't see any plasma logs and we're not *that* quiet, so I suspect your system is not configured to put plasmashell output into the system log. But never mind, we have found the likely culprit.
(In reply to cwo from comment #5) > You have Dolphin favorited as org.kde.dolphin.desktop, not as > applications:org.kde.dolphin.desktop. > > That's quite unusual. It used to be this way many years ago, but was > migrated to the new form so long ago that even the migration code was > dropped. what? how do i have it like this, then? unless the Gentoo packaging team applied some patch for that to be the case, but if they did, what could possibly be the point··· > Wait, playing around with some conditions here - is it possible that the > software was not installed when you logged in for the first time, and then > you installed it later? ···you're right now that i remember, i only installed the bare desktop with nothing else in it, then i proceeded to install Konsole, _then_ Dolphin and the rest > FWIW, kicker is correct - our launchers all use the same backend, which is > named after kicker, so the logs for (the C++ side) of all three are under > that name. i see > I don't see any plasma logs and we're not *that* quiet, so I > suspect your system is not configured to put plasmashell output into the > system log. But never mind, we have found the likely culprit. well i did configure my kernel to be as quiet as it can get, although i'm not sure if that connects to KDE that much
(In reply to ruby from comment #6) > ···you're right > now that i remember, i only installed the bare desktop with nothing else in > it, then i proceeded to install Konsole, _then_ Dolphin and the rest Yeah, we ship with some default favorites that distros can override to fit the software that they're actually shipping. The first time you launch Plasma, those are added to the database. But if they're not installed, it can't find them, so it adds them in the wrong format. That doesn't matter much unless you then install them, now it can find them, but will try to remove them under the new format, and that fails. I'll look for a solution we can ship.
(In reply to cwo from comment #7) > Yeah, we ship with some default favorites that distros can override to fit > the software that they're actually shipping. The first time you launch > Plasma, those are added to the database. But if they're not installed, it > can't find them, so it adds them in the wrong format. That doesn't matter > much unless you then install them, now it can find them, but will try to > remove them under the new format, and that fails. > > I'll look for a solution we can ship. i see, i look forward to further updates then :)
Yep that was my suspicion, you have apps without application: but the favorite removal request goes with the application: and thus doesn't work. Should be easy to fix
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/7281
*** Bug 527702 has been marked as a duplicate of this bug. ***
Git commit 61696f10c1624d25d290a9582cb3c1c4e2c21088 by Christoph Wolk. Committed on 26/10/2026 at 11:03. Pushed by cwo into branch 'master'. applets/kicker: port old favoriteId format to new one A long time ago, the format for the id application favorites that's stored in the kactivities database was changed from bare .desktop file names to applications: urls. Recently, we also ported away from the final bits and unified the internal ids used in the kicker backend to this format, rather than constantly converting between them and introducing weird bugs when the formats did not match. Now that we use the same id internally, there's nothing that should still add the old-style ids, or so I thought... As it turns out, there is at least one edge case where old-style urls can still be introduced to the database, and that is our mechanism for setting default favorites. If we add an application that we can't find a KService for, we can't normalize the id, and so fall back to taking the value as is and saving that as an (absent) favorite. In most cases, that is a bare id with no url scheme. If the app is later installed, kicker gets really confused and lists it among the favorites, but doesn't consider it a favorite on any activity, and any attempt to change its state will fail. Long-term, we really need a better mechanism here - the whole "secret favorites that are in the database but will only show up once installed" bit is confusing and probably not exactly a great UX either. But we support a lot of formats for specifying default favorites, which makes correct identification difficult, and allow distributions and deployments to override our defaults (and should not break their setup) There may be even legitimate cases for application favorites that don't exist during initial startup (e.g. on an unavailable network share?). So we should tread carefully here. In the mean time, we should at least fix the breakage, and convert the old-style favorite ids to new one. Luckily, this is pretty much an edge case that will mostly apply to experts doing a very custom plasma install, and the number of default favorites should generally be quite small. We can fix the issue similar to the old migration code in 19f046e1cfaa9b088899124291392e976cf59e04: checking whether this problem applies, then removing the old favorite and adding the new one. (the implementation has to be slightly different, and we try some extra handling to try to maintain the favorite order and any specific activity setup that the user may have made, though I wouldn't have an idea how). This fixes the issue, and I hope without messing up the order of favorites in the launcher (but can't 100% guarantee it, as this is very complex and much happens asynchronously). M +20 -0 applets/kicker/kastatsfavoritesmodel.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/61696f10c1624d25d290a9582cb3c1c4e2c21088
Git commit 043e4bfbce8131ca3ef1f20c6f3200a2c4e04035 by Christoph Wolk. Committed on 26/10/2026 at 14:31. Pushed by cwo into branch 'Plasma/6.8'. applets/kicker: port old favoriteId format to new one A long time ago, the format for the id application favorites that's stored in the kactivities database was changed from bare .desktop file names to applications: urls. Recently, we also ported away from the final bits and unified the internal ids used in the kicker backend to this format, rather than constantly converting between them and introducing weird bugs when the formats did not match. Now that we use the same id internally, there's nothing that should still add the old-style ids, or so I thought... As it turns out, there is at least one edge case where old-style urls can still be introduced to the database, and that is our mechanism for setting default favorites. If we add an application that we can't find a KService for, we can't normalize the id, and so fall back to taking the value as is and saving that as an (absent) favorite. In most cases, that is a bare id with no url scheme. If the app is later installed, kicker gets really confused and lists it among the favorites, but doesn't consider it a favorite on any activity, and any attempt to change its state will fail. Long-term, we really need a better mechanism here - the whole "secret favorites that are in the database but will only show up once installed" bit is confusing and probably not exactly a great UX either. But we support a lot of formats for specifying default favorites, which makes correct identification difficult, and allow distributions and deployments to override our defaults (and should not break their setup) There may be even legitimate cases for application favorites that don't exist during initial startup (e.g. on an unavailable network share?). So we should tread carefully here. In the mean time, we should at least fix the breakage, and convert the old-style favorite ids to new one. Luckily, this is pretty much an edge case that will mostly apply to experts doing a very custom plasma install, and the number of default favorites should generally be quite small. We can fix the issue similar to the old migration code in 19f046e1cfaa9b088899124291392e976cf59e04: checking whether this problem applies, then removing the old favorite and adding the new one. (the implementation has to be slightly different, and we try some extra handling to try to maintain the favorite order and any specific activity setup that the user may have made, though I wouldn't have an idea how). This fixes the issue, and I hope without messing up the order of favorites in the launcher (but can't 100% guarantee it, as this is very complex and much happens asynchronously). (cherry picked from commit 61696f10c1624d25d290a9582cb3c1c4e2c21088) Co-authored-by: Christoph Wolk <cwo.kde@posteo.net> M +20 -0 applets/kicker/kastatsfavoritesmodel.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/043e4bfbce8131ca3ef1f20c6f3200a2c4e04035