linuxmint / nemo

File browser for Cinnamon
GNU General Public License v2.0
1.24k stars 300 forks source link

Trash issue with symlinks across filesystems #1188

Open rigrig opened 8 years ago

rigrig commented 8 years ago

Nemo version: 3.0.3

It seems Nemo has issues finding/using the correct trash directory when browsing a symlinked directory that is actually on another filesystem.

Setup:

~ $ pwd
/home/richard
~ $ mount | fgrep /data   # this is the other filesystem
/dev/mapper/sddlarge-data on /data type ext4 (rw,relatime,data=ordered)
~ $ mkdir /data/richard/test
~ $ ln -s /data/richard/test
~ $ ls -ld test
lrwxrwxrwx 1 richard richard 18 May 24 22:48 test -> /data/richard/test
~ $ echo 123 > test/text.txt

The problem: (the Gtk-warnings happen right away, so are probably unrelated)

~ $ nemo test   # location bar shows /home/richard/test

(nemo:7444): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1740:29: Missing name of pseudo-class

(nemo:7444): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1745:29: Missing name of pseudo-class

Expected result: being able to move text.txt to the Trash Actual result: Nemo tells me

Cannot move file to trash, do you want to delete immediately? The file "text.txt" cannot be moved to the trash.

It works fine when opening the actual path:

~ $ nemo /data/richard/test/   # location bar shows /data/richard/test

(nemo:7468): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1740:29: Missing name of pseudo-class

(nemo:7468): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1745:29: Missing name of pseudo-class

Expected result: being able to move text.txt to the Trash Actual result: Success, Nemo moves text.txt to /data/.Trash-1000/files/text.txt and Trash/restore works fine.

Both trash directories ~.local/share/Trash and /data/.Trash-1000 are owned and read-write-Xable by me, and Trashing files directly in my home directory also works fine.

aksiazek commented 7 years ago

Still an issue for nemo 3.2.2 on Mint 18.1 cinnamon. I have an issue for symlinks from home to an ntfs filesystem. This is made all the more frustrating that gvfs-trash "file" simply works.

icarter09 commented 4 years ago

@aksiazek are you still experiencing this issue on the latest version of nemo?