Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Upped the version to 0.0.6

  • Loading branch information...
commit 9def43215831a94671f10d3f8d19c76a90e06068 1 parent 984f403
@bneijt authored
Showing with 17 additions and 11 deletions.
  1. +15 −8 README
  2. +1 −1  autotrash
  3. +0 −1  patches/README
  4. +1 −1 
@@ -1,21 +1,28 @@
-Autotrash is a small python script to automatically removes
-(permenantly delete) old Trash files.
+Autotrash is a small python script to automatically remove
+(permenantly delete) old trashed files. It relies on the Trash files for it's deletion information.
It scans the ~/.local/share/Trash/info directory and reads the .trashinfo
files to determine their deletion date. Files older then 30 days are
then removed including their trash information file.
-You can configure the number of days using commandline parameters, use
-the command "./ --help" for more information.
It should be considered to be run as a crontab:
-@daily $HOME/bin/
+@daily /usr/bin/autotrash
+Or more frequently, but to keep disk IO down, only when there is less then 3GB of free space:
+@hourly /usr/bin/autotrash --max-free 3072
-If you do not know how to work with crontab, you can add it to the startup
+To configure this, run "crontab -e" and add one of these lines in the editor, then save
+and close the file.
+If you do not know how to work with crontab, you could add it to the startup
programs in GNOME using the menu: System -> Preferences -> Sessions
Add the program with the "+ Add" button.
+This will make sure that your trash is cleaned up every time you log in.
2  autotrash
@@ -127,7 +127,7 @@ def main(args):
if options.version:
-'''Version 0.0.5\nCopyright (C) 2008 A. Bram Neijt <>\nLicense GPLv3+''')
+'''Version 0.0.6\nCopyright (C) 2008 A. Bram Neijt <>\nLicense GPLv3+''')
return 1
if options.days <= 0:
1  patches/README
@@ -1 +0,0 @@
-These are patches that I'll be working on in the future.
2 
@@ -3,7 +3,7 @@
name= 'autotrash',
- version= '0.0.5',
+ version= '0.0.6',
author= 'A. Bram Neijt',
author_email= '',
url= '',
Please sign in to comment.
Something went wrong with that request. Please try again.