Bug 513802 - Root trash dir "~/Home/.Trash" exists but didn't pass the security check
Summary: Root trash dir "~/Home/.Trash" exists but didn't pass the security check
Status: REPORTED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: Trash (other bugs)
Version First Reported In: 6.21.0
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-25 14:31 UTC by JPT
Modified: 2025-12-25 14:31 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description JPT 2025-12-25 14:31:57 UTC
This has me annoyed for years. Deleted files are always copied to the "main" .Trash directory instead of leaving them in the partition's trash folder. Now this got worse as dolphin just doesn't want to delete files any more.
it either tells: "Der Papierkorb ist für den Speicherort dieses Elements nicht verfügbar. Möchten Sie es stattdessen endgültig löschen?", which is at least not worse than the old behaviour.
or it tells 
Unbekannter Fehlercode 180
Für diesen Speicherort konnte kein Papierkorb gefunden oder erstellt werden.
Bitte senden Sie einen ausführlichen Problembericht an https://bugs.kde.org.

console output of Dolphin:
kf.kio.workers.trash: Root trash dir "/run/media/jan/FAT16GB/.Trash" exists but didn't pass the security checks, can't use it
kf.kio.workers.trash: Root trash dir "/home/jan/Home/.Trash" exists but didn't pass the security checks, can't use it
kf.kio.workers.trash: Root trash dir "/run/media/jan/FAT16GB/.Trash" exists but didn't pass the security checks, can't use it

the only info I could find how the trash directories should look like is in an ancient bug
https://bugs.kde.org/show_bug.cgi?id=76380#c59
But this does not help. 
I haven't dealt with default mount options yet. 

Thank you very much.

my mount structure is like this:

    cat /etc/systemd/system/home-jan-Home.mount
    [Unit]
    DefaultDependencies=no
    Conflicts=umount.target
    Before=local-fs.target umount.target
    After=mnt-DATEN.mount 
    [Mount]
    What=/mnt/DATEN/home/jan/Home
    Where=/home/jan/Home
    Type=none
    Options=bind
    [Install]
    WantedBy=local-fs.target

    cat /etc/systemd/system/mnt-DATEN.mount
    [Unit]
    Description=Mount DATEN
    Conflicts=umount.target
    [Mount]
    What=/dev/disk/by-label/JPT-DATEN
    Where=/mnt/DATEN
    Type=ext4
    Options=defaults,relatime,nosuid
    TimeoutSec=30
    [Install]
    WantedBy=multi-user.target

some currently mounted thumbdrives, which both work fine in spite of being world readable:
/dev/sdg1 on /run/media/jan/NTFS64 type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)
/dev/sdh1 on /run/media/jan/FAT16GB type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1001,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,short

/home/jan$ find -type d |grep Trash| xargs ls -ld   
drwsr-sr-x 3 jan jan  4096 25. Dez 14:58 ./Home/.Trash
drwx------ 4 jan jan  4096 21. Mai 2024  ./Home/.Trash-1000
drwx------ 2 jan jan  4096 25. Dez 14:58 ./Home/.Trash/1000
drwxr-xr-x 2 jan jan  4096 21. Mai 2024  ./Home/.Trash-1000/files
drwxr-xr-x 2 jan jan  4096 21. Mai 2024  ./Home/.Trash-1000/info
drwxr-xr-x 4 jan jan  4096 20. Dez 16:46 ./.local/share/Trash
drwxr-xr-x 2 jan jan 65536 25. Dez 14:50 ./.local/share/Trash/files
drwxr-xr-x 2 jan jan 77824 25. Dez 14:50 ./.local/share/Trash/info
/run/media$ find -type d |grep Trash| xargs ls -ld
drwxr-xr-x 3 jan jan 8192  5. Aug 14:10 ./jan/FAT16GB/.Trash
drwxr-xr-x 4 jan jan 8192 20. Dez 16:46 ./jan/FAT16GB/.Trash-1000
drwxr-xr-x 2 jan jan 8192  5. Aug 14:10 ./jan/FAT16GB/.Trash/1000
drwxr-xr-x 2 jan jan 8192 20. Dez 16:46 ./jan/FAT16GB/.Trash-1000/files
drwxr-xr-x 2 jan jan 8192 20. Dez 16:46 ./jan/FAT16GB/.Trash-1000/info
drwxrwxrwx 1 jan jan 4096 25. Dez 14:50 ./jan/NTFS64/.Trash-1000
drwxrwxrwx 1 jan jan   48 25. Dez 14:50 ./jan/NTFS64/.Trash-1000/files
drwxrwxrwx 1 jan jan   48 25. Dez 14:50 ./jan/NTFS64/.Trash-1000/info

SOFTWARE/OS VERSIONS
Linux: 6.18.1-1-MANJARO
KDE Plasma Version: 6.5.4-1
KDE Frameworks Version: 6.21.0-1
Qt Version: 6.10.1-1
Dolphin 25.12.0