Trashexpiry deletes old items from your (Linux) desktop trash.
Usage:
```shell
cargo install trashexpiry
trashexpiry
trashexpiry --install-timer ```
By default, it deletes files which have been in trash for over 60 days.
This time limit is configurable in ~/.config/trashexpiry.ini
:
ini
warn_after_days = 50
delete_after_days = 60
I wrote this partly to get more familiar with Rust. Use at your own risk.
Desktop trash systems normally delete files when you manually empty the trash. But people often fall into one of two patterns:
In contrast, web applications such as GMail have time-limited trash: you have a few weeks to get things back, and then they're gone for good. Time-limited trash doesn't pile up, and because I know it will be deleted automatically, I don't feel a need to keep it clear myself.
So Trashexpiry makes desktop trash behave more like GMail trash.