Bug 500259 - Cannot create a valid shortcut for a KCM on desktop with drag-and-drop
Summary: Cannot create a valid shortcut for a KCM on desktop with drag-and-drop
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Launcher (Kickoff) widget (other bugs)
Version First Reported In: 6.3.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks: 446031
  Show dependency treegraph
 
Reported: 2025-02-17 14:03 UTC by Patrick Silva
Modified: 2025-10-21 20:48 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2025-02-17 14:03:25 UTC
STEPS TO REPRODUCE
1. minimize all windows
2. open Kickoff and search for "shortcuts" (or another KCM)
3. drag the KCM listed in the search results and drop it on desktop
4. choose "Link here" from the context menu

OBSERVED RESULT
an item without icon is created on desktop, and Dolphin opens when I double-click on it.

EXPECTED RESULT
a valid shortcut for the KCM is created on desktop

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Graphics Platform: Wayland
Comment 1 Nate Graham 2025-02-18 17:34:56 UTC
Can reproduce.
Comment 2 Nate Graham 2025-10-21 20:48:16 UTC
The problem appears to be that when you start dragging a KCM item, the URI sent to the drag handler is applications://kcm_mouse (for example), which is in fact a valid URI.

But it's just not a URI to the KCM's desktop file, so when you drop it, the options in the drop menu are suitable for the applications://kcm_mouse URI, and don't actually get you what you want.

Probably it should instead pass the URI "file://usr/share/applications/kcm_mouse.desktop", and then all the items in the drop menu should work automatically.