From: Christoph Wolk Date: Mon, 23 Jun 2025 20:03:27 +0000 (+0000) Subject: [PATCH] applets/kicker: resolve non-existing files to their url X-Git-Tag: archive/raspbian/4%6.3.6-2+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=aa50f966e17825ab8af5e39d1425a73aaf432baf;p=plasma-workspace.git [PATCH] 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. BUG: 402820 FIXED-IN: 6.4.1 (cherry picked from commit da244b8764cde5509598965f24804bbaa5e0939f) Co-authored-by: Christoph Wolk Gbp-Pq: Name upstream_d1896f5a_applets-kicker-resolve-non-existing-files-to-their-url.patch --- diff --git a/applets/kicker/plugin/kastatsfavoritesmodel.cpp b/applets/kicker/plugin/kastatsfavoritesmodel.cpp index 540a10f9..627df739 100644 --- a/applets/kicker/plugin/kastatsfavoritesmodel.cpp +++ b/applets/kicker/plugin/kastatsfavoritesmodel.cpp @@ -116,6 +116,8 @@ public: m_id = QUrl::fromLocalFile(file.canonicalFilePath()).toString(); return; } + // if the file was deleted, take the url as-is + m_id = url.toString(); } // If this is a file, we should have already covered it