https://bugs.kde.org/show_bug.cgi?id=513802

            Bug ID: 513802
           Summary: Root trash dir "~/Home/.Trash" exists but didn't pass
                    the security check
    Classification: Frameworks and Libraries
           Product: frameworks-kio
      Version First 6.21.0
       Reported In:
          Platform: Manjaro
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Trash
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to