g_file_trash() works on partitions not listed in gvfs trash://
Submitted by Pétur Ingi Egilsson
Link to original bug (#604015)
Description
Binary package hint: nautilus
petur@petur:~$ lsb_release -rd Description: Ubuntu 9.10 Release: 9.10 petur@petur:~$ apt-cache policy nautilus nautilus: Installed: 1:2.28.1-0ubuntu3 Candidate: 1:2.28.1-0ubuntu3 Version table: *** 1:2.28.1-0ubuntu3 0 500 http://dk.archive.ubuntu.com karmic-updates/main Packages 100 /var/lib/dpkg/status 1:2.28.1-0ubuntu1 0 500 http://dk.archive.ubuntu.com karmic/main Packages
Fstab: UUID=9d77bb33-4e67-468e-b3fe-8c2353f0f9c7 / ext3 relatime,errors=remount-ro 0 1 /dev/md0 /home auto defaults,acl 0 0 #/dev/md0 is ext3
History: Files deleted from / were unable to be moved to Trash as there is no trash folder on /
Problem: I created /.Trash-petur with chown petur.petur and then delete a file from / The file was moved to /.Trash-petur/files/ The file does not show up in Nautilus Trash.
I then removed the /.Trash-petur directory and created /.Trash/ with chmod 1777 and then deleted another file from /
This time a subdir <uuid>
was created under /.Trash/ and the deleted file was moved to /.Trash/<uuid>
/files/
The file does not show up in Nautilus Trash.
I thought maby there is a bug causing the files in /.Trash/<uuid>
/ not to be displayed.
I deleted a file from /home/ and it shows up in Trash.
I did "Empty Trash" and the file disappeared from the Trash.
However the files deleted from / are still in /.Trash/<uuid>
/files/
.. root@petur:/# find .Trash -exec ls -lah {} ; total 12K drwxrwxrwt 3 root root 4.0K 2009-12-07 18:46 . drwxr-xr-x 24 root root 4.0K 2009-12-07 18:46 .. drwx------ 4 petur petur 4.0K 2009-12-07 18:46 1000 total 16K drwx------ 4 petur petur 4.0K 2009-12-07 18:46 . drwxrwxrwt 3 root root 4.0K 2009-12-07 18:46 .. drwx------ 2 petur petur 4.0K 2009-12-07 19:21 files drwx------ 2 petur petur 4.0K 2009-12-07 19:21 info total 8.0K drwx------ 2 petur petur 4.0K 2009-12-07 19:21 . drwx------ 4 petur petur 4.0K 2009-12-07 18:46 .. -rw-r----- 1 petur petur 0 2009-12-07 19:18 foobar -rw-r----- 1 petur petur 0 2009-12-07 19:18 .Trash/1000/files/foobar total 12K drwx------ 2 petur petur 4.0K 2009-12-07 19:21 . drwx------ 4 petur petur 4.0K 2009-12-07 18:46 .. -rw-r----- 1 petur petur 77 2009-12-07 19:18 foobar.trashinfo -rw-r----- 1 petur petur 77 2009-12-07 19:18 .Trash/1000/info/foobar.trashinfo ..
I tried refreshing the trash and logging out and back into the system.
ps. This bug was originally submitted to launchpad as https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/493693