https://bugs.kde.org/show_bug.cgi?id=520894

--- Comment #17 from cwo <[email protected]> ---
Git commit bbb9f22f0680adc425e32caeb298c82e227ca46b by Christoph Wolk.
Committed on 13/07/2026 at 08:42.
Pushed by cwo into branch 'Plasma/6.7'.

runners/services: handle malformed .desktop file names better

.desktop file names should be valid dbus well-known names, but in the
wild you may find some with invalid names, such as including the
character ":". Until recently, even kmenuedit would create such files if
the user used a : in the human-readable name. This completely breaks the
service runner: a malformed file like "Test: 1. desktop" is parsed as
the path "1.desktop" on the "test" scheme, has its scheme replaced by
"applications", and trying to launch the resulting id
"applications: 1.desktop" will fail, as will trying to favorite the
match in a launcher.

Instead, create the QUrl and explicitly set the storageId of the service
as the path, which protects it from having parts misidentified as a
scheme.


(cherry picked from commit 44153ae0e6185bc6f3ebc9a892003ff30affd8d8)

Co-authored-by: Christoph Wolk <[email protected]>

M  +4    -2    runners/services/servicerunner.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/bbb9f22f0680adc425e32caeb298c82e227ca46b

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to