Bug 453362

Summary: Incorrect work of the trash with symlinks on different physical disks
Product: [Frameworks and Libraries] frameworks-kio Reporter: MrNekit <Balykin_nikita>
Component: TrashAssignee: David Faure <faure>
Status: REPORTED ---    
Severity: normal CC: almazgaliev99, kdelibs-bugs
Priority: NOR    
Version: 5.94.0   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description MrNekit 2022-05-03 22:24:52 UTC
STEPS TO REPRODUCE
1. Make symlink from 1-st harddrive to 2-nd harddrive. 

For example: 
"/" is mounted on SSD. So "/home/user/" is also on ssd. 
HDD is mounted in "/mnt/HDD/".  

Folder /mnt/HDD/video have symlink in home directory: "/home/user/video". 
This folder is on HDD.

2. Remove some files from /home/user/video

OBSERVED RESULT
Files from HDD will go to the SSD trash

EXPECTED RESULT
files from the HDD must go to the hdd. even if there is a symlink

Operating System: Manjaro Linux
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Kernel Version: 5.15.32-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 4 × AMD Ryzen 3 PRO 2200G with Radeon Vega Graphics
Memory: 13.6 ГиБ of RAM
Graphics Processor: AMD Radeon Vega 8 Graphics
Comment 1 MrNekit 2022-06-07 23:35:54 UTC
Little addition. 

SSD trash is ~/.local/share/Trash/files/
HDD trash is /mnt/HDD/.Trash-1000/files