Summary: | "Command or Script" shortcuts completely break desktop files | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | Brodie Robertson <brodierobertson54321> |
Component: | general | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ad.liu.jin, alanas.00, grzesiek11, nate |
Priority: | NOR | ||
Version: | 6.1.4 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/plasma-desktop/-/commit/38cfc065b4b0a994227c0f0751668dd2447d70e6 | Version Fixed In: | 6.2.0 |
Sentry Crash Report: |
Description
Brodie Robertson
2024-09-07 14:39:12 UTC
Going by the XDG Desktop Entry Specification, Plasma should create those desktop files with a vendor prefix, such as `org.kde.shortcut`. This should avoid conflicts with other software. (In reply to Grzesiek11 from comment #1) > Going by the XDG Desktop Entry Specification, Plasma should create those > desktop files with a vendor prefix, such as `org.kde.shortcut`. This should > avoid conflicts with other software. kglobalacceld also looks for *.desktop files in ~/.local/share/kglobalaccel (In reply to alanas.00 from comment #2) > kglobalacceld also looks for *.desktop files in ~/.local/share/kglobalaccel Yes, but kglobalacceld no longer runs in Wayland. Git commit 38cfc065b4b0a994227c0f0751668dd2447d70e6 by David Edmundson. Committed on 12/09/2024 at 05:49. Pushed by davidedmundson into branch 'master'. Add custom prefix to user generated desktop files made from shortcuts KCM The shortcuts KCM re-uses desktop files to store launchers for custom commands. This is extremely sensible design as it is something being launched and the design we want. Semantically we're creating a new entry point. It's the only way you'll get the right cgroup mapped on launch. However the name entered by the user could clash with something on the system which is something we don't want. Most apps are prefixed with the correct reverse DNS prefix so it's a rare case, but not all. This was seen in the wild by a user overriding alacritty.desktop by accident. Adding a custom prefix for user-generated files should avoid any potential clash. Fixed-in: 6.2 M +1 -0 kcms/keys/kcm_keys.cpp https://invent.kde.org/plasma/plasma-desktop/-/commit/38cfc065b4b0a994227c0f0751668dd2447d70e6 |