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

--- Comment #8 from cwo <[email protected]> ---
Git commit 26733947daff179ac50a0658e2a1f8864d883206 by Christoph Wolk.
Committed on 08/06/2026 at 20:03.
Pushed by tfella into branch 'master'.

treeview: don't create desktop file names with invalid characters

.desktop file names are supposed to be "a sequence of non-empty elements
separated by dots (U+002E FULL STOP), none of which starts with a digit,
and each of which contains only characters from the set [A-Za-z0-9-_]".
Kmenuedit, when creating a new entry, allows the user to specify a name
and will use that as the desktop file name, only replacing the forward
slash / with a hyphen -. All other characters not included in the
allowed character set are used unchanged. This can break some
applications handling desktop files, including the kicker backend,
which in some cases tries to read the file name as an url, and so e.g.
parts separated with a colon may be interpreted as url schemes and not
function properly. While this should be fixed in kicker, we also should
not produce invalid names.

Instead, replace all invalid characters with an underscore _. This only
applies to the .desktop file name; in the menu the name will be used as
entered by the user.

M  +1    -0    treeview.cpp

https://invent.kde.org/plasma/kmenuedit/-/commit/26733947daff179ac50a0658e2a1f8864d883206

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

Reply via email to