Bug 366553

Summary: Dolphin shows Trash: files origin path wrong if same name file was moved to trash twice
Product: [Applications] dolphin Reporter: Morgan Leijström <temp>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: bugseforuns, claudius.ellsel, nate
Priority: NOR    
Version First Reported In: 16.12.2   
Target Milestone: ---   
Platform: Mageia RPMs   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Morgan Leijström 2016-08-09 15:02:53 UTC
Cloned from https://bugs.mageia.org/show_bug.cgi?id=18608
Dolphin 16.04.3 ,  KDE 5.24.0 , Qt 5.6.1 on Mageia 6 (Cauldron)
While using KDE & Dolphin:

1. create file "text" in your home, then "delete" it to trash
 then again:
2. create file "text" in your home, then "delete" it to trash
3. Open trash and see the files listed as:

_File______Folder___
text     /home/user
text(1)  /home/user/text


That "/home/user/text" is plain wrong; the file was not deleted from am folder named text!
(trash folders are listed without trailing dash "/" )

It works correctly; i can restore that text(1) and it ends up as "text" in /home/user/


Quick test using thunar to delete files to trash:
The files in trash is shown by the original name in trash using thunar
  unfortunately it seem thunar can not show source (original file location)
Looking at those files in trash using dolphin they are named like *.2 instead of *(1) (that is irrelevant) but also for them dolphin show wrong path


BTW it is even more confusing if user happen to delete a file named "something (1)" twice, dolphin then list a never existed filename "something (2)" in trash, and say it was deleted from folder "whatever/something (1)"

Reproducible: Always
Comment 1 Nate Graham 2017-08-18 15:58:54 UTC
Confirmed. This issue shows up in Details view, with the "Path" column visible.
Comment 2 Claudius Ellsel 2020-08-04 10:22:09 UTC
I assume the current logic how to handle trashed files needs improvement.