Bug 490500 - "Access denied to trash:/...." error when trying to delete a file from a mtp device by pressing del key
Summary: "Access denied to trash:/...." error when trying to delete a file from a mtp ...
Status: CONFIRMED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: Trash (other bugs)
Version First Reported In: 6.4.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-19 13:57 UTC by Patrick Silva
Modified: 2024-07-26 15:22 UTC (History)
2 users (show)

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


Attachments
screenshot (13.11 KB, image/png)
2024-07-19 13:58 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2024-07-19 13:57:56 UTC
STEPS TO REPRODUCE
1. connect an android phone to usb port
2. activate file transfer in android phone
3. open Dolphin
4. open a picture stored in android phone with gwenview
5. try to delete the picture by pressing del key

OBSERVED RESULT
error message seen in the attached screenshot

EXPECTED RESULT
when I try to delete the picture directly via Dolphin by pressing del key, it offers to delete the file permanently.
Gwenview should behavior in the same way.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Graphics Platform: Wayland
Comment 1 Patrick Silva 2024-07-19 13:58:38 UTC
Created attachment 171786 [details]
screenshot
Comment 2 Nicolas Fella 2024-07-26 15:22:01 UTC
This boils down to the trash KIO worker not implementing put(), so trashing things from remove file systems cannot work.

Dolphin just doesn't offer moving files to trash (only deleting), so there it isn't noticeable.

Gwenview could do the same, but I don't see why we couldn't have trash for remote files in principle