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

--- Comment #15 from cwo <[email protected]> ---
Git commit 44153ae0e6185bc6f3ebc9a892003ff30affd8d8 by Christoph Wolk.
Committed on 13/07/2026 at 06:53.
Pushed by cwo into branch 'master'.

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.

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

https://invent.kde.org/plasma/plasma-workspace/-/commit/44153ae0e6185bc6f3ebc9a892003ff30affd8d8

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

Reply via email to