Bug 515247

Summary: Can't open video files from the Trash folder in Dolphin
Product: [Applications] dolphin Reporter: Sergey Katunin <sulmpx60>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: dolphin-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Video showing the problem with opening a video file from Trash folder

Description Sergey Katunin 2026-01-29 09:57:51 UTC
Created attachment 189021 [details]
Video showing the problem with opening a video file from Trash folder

SUMMARY

There is a problem with opening video files when double-clicking on a file from the Trash folder in Dolphin. It was tested on video players: Haruna, VLC, SMPlayer. 

They receive a symlink like: `file:///run/user/1000/kio-fuse-XjICas/trash/0-test.mp4`, which they cannot open because this symlink points to:

`/run/user/1000/kio-fuse-XjICas/trash/home/user/.local/share/Trash/files/test.mp4`, 

and this link contain an extra prefix `/run/user/1000/kio-fuse-XjICas/trash' in the path.

At the same time, if I manually drag a file from the Trash into the video player window, it receives an URL like: `/home/user/.local/share/Trash/files/test.mp4`, and now, the file is played.

The problem is probably quite old, as I reproduce this behavior even on Dolphin 23.08.5 + Plasma 5.27.11 + Frameworks 5.116.0.

It is not clear now whether the problem is in Dolphin or in KIO.

But I think, when we double-click file in Dolphin, it should transfer the local URL to a file like `/home/user/.local/share/Trash/files/test.mp4` to the player, instead of the URL to the KIO folder with a non-working symlink, in the same way as if we drag the file into the video player window.

Or, the symlink itself should be working, without an extra prefix.

STEPS TO REPRODUCE

1. Delete video file to the Trash folder.

2. Open Trash folder and double-click on video file.

OBSERVED RESULT

The video file should be playing.

EXPECTED RESULT

The video file is not playing.

SOFTWARE/OS VERSIONS

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 6.6.80
KDE Frameworks Version: 6.23.0
Qt Version: 6.10.1
Kernel Version: 6.14.0-37-generic (64-bit)
Graphics Platform: Wayland