| Summary: | App cannot be opened from Favorites until plasmashell restarts after overriding .desktop file | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Alex <48priory.volcano> |
| Component: | Application Launcher (Kickoff) widget | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | mikel5764, nate, noahadvs |
| Priority: | HI | ||
| Version First Reported In: | 6.3.6 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Debian stable | ||
| OS: | Linux | ||
| See Also: | https://bugs.kde.org/show_bug.cgi?id=510287 | ||
| Latest Commit: | https://invent.kde.org/plasma/plasma-workspace/-/commit/c5672b660a5dd45f7f34a328773452a975dcbcfe | Version Fixed/Implemented In: | 6.6.0 |
| Sentry Crash Report: | |||
|
Description
Alex
2025-11-19 06:24:00 UTC
Thank you for the bug report! Debian advises users to not submit bugs upstream (https://www.debian.org/Bugs/Reporting), and Plasma 6.3.6 is no longer eligible for support or maintenance from KDE. It's possible that the issue exists only in Debian at this point. Could you report the bug to Debian using the report bug utility (https://packages.debian.org/stable/utils/reportbug)? If necessary, the maintainer of the package will forward the bug upstream. Thanks for understanding! Thanks again! This issue exists not only in Debian, but also in the latest KDE Neon Testing (as specified in the first message) and in Manjaro. Indeed, I can reproduce this issue as well, exactly as written. A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/6234 A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/6234 Git commit 23bd030b2051b4d5d5a74ad23e3487fcde26e443 by Nate Graham, on behalf of Alexey Rochev. Committed on 09/02/2026 at 15:00. Pushed by ngraham into branch 'master'. KAStatsFavoritesModel: retrieve launched entry by normalized id from m_items list The problem with m_itemEntries map is that entries are stored there several times with different keys: normalized id, url and path. When desktop entry is overriden in user directory, and ksycoca is updated, entry is reloaded but is still stored in m_itemEntries with the old keys. This is not a problem for normalized id, but url and path keys will become incorrect in this case. Then in trigger() we will get a url of entry found via its normalized id (which didn't change) and try to find it again using that url. Which doesn't work because entry->url() returns new url for overridden desktop entry, but m_itemEntries contains key with the old url. This change sidesteps this issue by always operating on an entry found via normalized id, which is simpler and more efficient anyway. FIXED-IN: 6.6.0 M +1 -12 applets/kicker/kastatsfavoritesmodel.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/23bd030b2051b4d5d5a74ad23e3487fcde26e443 Git commit c5672b660a5dd45f7f34a328773452a975dcbcfe by Nate Graham. Committed on 09/02/2026 at 15:02. Pushed by ngraham into branch 'Plasma/6.6'. KAStatsFavoritesModel: retrieve launched entry by normalized id from m_items list The problem with m_itemEntries map is that entries are stored there several times with different keys: normalized id, url and path. When desktop entry is overriden in user directory, and ksycoca is updated, entry is reloaded but is still stored in m_itemEntries with the old keys. This is not a problem for normalized id, but url and path keys will become incorrect in this case. Then in trigger() we will get a url of entry found via its normalized id (which didn't change) and try to find it again using that url. Which doesn't work because entry->url() returns new url for overridden desktop entry, but m_itemEntries contains key with the old url. This change sidesteps this issue by always operating on an entry found via normalized id, which is simpler and more efficient anyway. FIXED-IN: 6.6.0 (cherry picked from commit 23bd030b2051b4d5d5a74ad23e3487fcde26e443) 8b43c518 KAStatsFavoritesModel: when launching entry, always retrieve entry by its... Co-authored-by: Alexey Rochev <arochevdev@gmail.com> M +1 -12 applets/kicker/kastatsfavoritesmodel.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/c5672b660a5dd45f7f34a328773452a975dcbcfe |