Bug 499379

Summary: Unable to drag and drop files on a script
Product: [Applications] dolphin Reporter: Damglador <vse.stopchanskyi>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: kdedev, kfm-devel, screen-rind-whoops
Priority: NOR    
Version First Reported In: 24.12.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Demonstration

Description Damglador 2025-02-01 10:51:18 UTC
SUMMARY
I can drag and drop a file on my script if it's on my desktop, and it'll pass that file to the script and execute the script. That doesn't work in Dolphin

STEPS TO REPRODUCE
1. Create a folder with a script and a file
2. Make test script (example below), make it executable
3. Try to drag and drop a file on it in Dolphin (don't use valuable files)

Script example:
#!/bin/bash

rm "$1"

OBSERVED RESULT
In Dolphin dragging a file to the script shows 🚫 on the cursor.

EXPECTED RESULT
Drag and dropping a file on a script in Dolphin should execute the script with the file passed to it.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1

ADDITIONAL INFORMATION
Added a demo
Comment 1 Damglador 2025-02-01 10:53:41 UTC
Created attachment 177875 [details]
Demonstration
Comment 2 TraceyC 2025-02-04 19:28:46 UTC
I've verified this on Dolphin 24.12.1 as well as Dolphin built from git-master

It is inconsistent behavior, since as a user I would expect to be able to have the same behavior when dropping a file onto another file whether on the desktop or in Dolphin. The desktop folder is just another folder, from the user's perspective.