often when I download stuff a popup appears telling me there is not a lot of disk space left. There are some alternative actions, including empty the trash can.

Why is there a trash can at all? Is it just a layer of defense against human errors or is there some deeper thought to it?

On what terms does it get emptied by the OS (if this indeed happens) and how is this done? I searched with apropos and man -k but couldn't find anything. I don't know if it is a good way to do it but I wrote an alias:

alias trash="rm -r $HOME/.local/share/Trash 2> /dev/null; echo 'Done.'"

I guess the proper place to look for the command the OS uses is - when writing is done, it checks if there is enough free space, if not, display the popup. If you can pinpoint where this happens, (for what it's worth) I'll be impressed...

Is there a way to tell the OS to always empty it when needed? Or, maybe even better, disable the feature altogether and simply discard files as they are deleted with rm?

link|improve this question
feedback

migrated from stackoverflow.com Dec 2 '11 at 7:53

This question came from our site for professional and enthusiast programmers.

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.