Bug 500259

Summary: Cannot create a valid shortcut for a KCM on desktop with drag-and-drop
Product: [Plasma] plasmashell Reporter: Patrick Silva <bugseforuns>
Component: Application Launcher (Kickoff) widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: mikel5764, nate, noahadvs
Priority: NOR Keywords: regression
Version First Reported In: 6.3.0   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Bug Depends on:    
Bug Blocks: 446031    

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.