Comment 14 for bug 366379

Revision history for this message
Matt Schafer (slyydawg) wrote :

Let me see if I can answer Sebastien's specific questions. This is long-winded, but these are exact steps that I took to reproduce the issue. Skip to the end to see my conclusions.

Steps to reproduce:
1. Fresh install of Ubuntu 9.04 32-bit Desktop Edition. All partitions formatted during installation. Hard-disk partitions:

Mount pt Device Type
-------- --------- ----
/ /dev/sda2 ext3
/boot /dev/sda1 ext3
/home /dev/sda6 ext3

2. Login after reboot at end of installation.
3. Did not change any settings anywhere.
4. Installed all updates from Update Manager.
5. Reboot.
6. In terminal: touch foo
7. Right-click on file "foo" in Nautilus. Select Move to Trash.

Results:
--> Trash applet appears empty.
--> Trash appears empty in Nautilus.
--> File "foo" appears in /home/xxx/.local/share/Trash/files.

Other actions:
8. gvfs-ls trash:
--> No output

9. gvfs-ls Trash:
--> No output

10. gvfs-ls trash:///
--> No output

11. gvfs-monitor-dir trash:
12. (In second terminal) touch myfile
13. In Nautilus, right click "myfile", choose Move to Trash.
--> No output for gvfs-monitor-dir command.

14. gvfs-monitor-dir /home/xxx/.local/share/Trash/files
15. (In second terminal) touch myfile2
16. In Nautilus, right-click "myfile", choose Move to Trash.
--> Output from gvfs-monitor-dir:

Directory Monitor Event:
Child = /home/xxx/.local/share/Trash/files/myfile2
Event = CREATED

17. Leave files in Trash folders.
18. Log out.
19. Log in.
--> Trash applet appears full.
--> Deleted files appear in Trash in Nautilus.

20. touch foobar
21. In Nautilus, right-click "foobar", choose Move to Trash.
--> File "foobar" appears in Trash in Nautilus.

22. In Trash window in Nautilus, click Empty Trash button and confirm.
--> Trash window is emptied.
--> Trash applet shows empty.

23. touch foo
24. In Nautilus, right-click file "foo", choose Move to Trash.
--> Trash applet appears full.
--> File "foo" appears in Trash in Nautilus.

Conclusions:
1. The Trash applet and Trash in Nautilus don't see any files that appear in the trash until the next time you log in.
2. Once you log in with files already in the trash, the expected behavior returns.
3. Installing updates has no effect on the issue.
4. Rebooting and logging in do not affect this issue. I rebooted and logged in and out many times while deleting files using "rm", but until I sent files to the trash and then logged out, I could not see the files in the trash.