No trash bin for bind mounted drives
Affected version
- Nightly flatpak: Before I mess with flatpak I would like to get your opinion on that.
- Other: GNOME nautilus 3.36.3 on Manjaro Gnome 20.0.3
Steps to reproduce
- I mount my secondary internal drive to host my personal data (see fstab). From the mount point I bind several default folders to my /home directory (see fstab).
- If I create a file in
/home/username/Downloads
and I want to delete it afterwards, Nautilus asks me if I want to delete it permanently - If I create a file in
/home/username/Downloads
and I want to delete it from/mnt/my_drive/username/Downloads
, Nautilus don't ask me anything, but it moves the file to the trash bin. - I go to
/mnt/my_drive/username/
and create a folderTestfolder
and symlink that folder to my /home directory withln -s /mnt/my_drive/username/Testfolder /home/username/Testfolder
. If I create a file in/home/username/Testfolder
and I want to delete it, Nautilus don't ask me anything, but it moves the file to the trash bin.
Current behavior
If I bind a folder via fstab to my /home directory the trash bin is not active for that folder. I may delete files permanently.
Expected behavior
If I bind a folder via fstab to my /home directory the trash bin is active for that folder, like for all other vanilla folders of my /home directory . If I delete a file it is moved to the trash bin.
Additional information
/etc/fstab
# My Storage:
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=LONG-NUMBER /mnt/my_drive ext4 rw,nosuid,nodev,nofail,exec,auto,nouser,async,relatime 0 0
# My Folders:
# <file system> <mount point> <type> <options> <dump> <pass>
/mnt/my_drive/username/Pictures /home/username/Pictures none rw,nosuid,nodev,nofail,exec,auto,nouser,async,relatime,bind,x-gvfs-hide 0 0
/mnt/my_drive/username/Documents /home/username/Documents none rw,nosuid,nodev,nofail,exec,auto,nouser,async,relatime,bind,x-gvfs-hide 0 0
/mnt/my_drive/username/Downloads /home/username/Downloads none rw,nosuid,nodev,nofail,exec,auto,nouser,async,relatime,bind,x-gvfs-hide 0 0
Permission info
/mnt/mydrive >>> ls -l
insgesamt 20
drwxr-x--- 9 username username 4096 26. Jul 03:10 username
drwx------ 2 root root 16384 26. Jul 02:58 lost+found
/mnt/my_drive/username >>> ls -l
insgesamt 40
drwxr-x--- 12 username username 4096 26. Jul 21:17 Pictures
drwxr-x--- 6 username username 4096 15. Jul 23:51 Documents
drwxr-x--- 13 username username 4096 26. Jul 21:54 Downloads