December 1, 2007

Ubuntu Trash

Recently I noticed that my laptop's harddrive fills up for no apparent reason. Although I deleted all the files from Trash, the harddrive was still filling up. As it turns out, the reason for this is that some applications (in my case Wine) use .local/share/Trash instead of .Trash in user directory.
The solution was to delete .local/share/Trash (which freed ~20 Gb of space on my drive) and replace it with a symlink (shortcut) to the .Trash directory that Ubuntu uses. This way all files sent to the "wrong" trash folder end up in the right one, where the user can manage them.

4 comments:

Saïvann said...

I noticed that in ubuntu 8.04, .Trash does not exist anymore in /home/user folder, I believe that this is a new freedesktop specification or something like that.

程远 said...

Thanks a lot! this has been troubling me for long!

Walter said...

In Ubuntu 8.04 the trash resides on .local/share/Trash ....

Ramon On The Way said...

I guess in 9.04 everything you deleted is now put in .local/share/Trash, is that possible this folder will be cleared automatically?