Bug 499379 - Unable to drag and drop files on a script
Summary: Unable to drag and drop files on a script
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: general (other bugs)
Version First Reported In: 24.12.1
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-01 10:51 UTC by Damglador
Modified: 2025-03-03 14:43 UTC (History)
3 users (show)

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


Attachments
Demonstration (2.36 MB, video/mp4)
2025-02-01 10:53 UTC, Damglador
Details

Note You need to log in before you can comment on or make changes to this bug.
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.