Skip to content

HTTPS clone URL

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  setup.py
View
23 README
@@ -1,21 +1,28 @@
-Autotrash is a small python script to automatically removes
-(permenantly delete) old FreeDesktop.org Trash files.
+Autotrash is a small python script to automatically remove
+(permenantly delete) old trashed files. It relies on the
+FreeDesktop.org 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 "./autotrash.py --help" for more information.
-
INSTALLATION
It should be considered to be run as a crontab:
-@daily $HOME/bin/autotrash.py
+@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.
-Homepage: http://logfish.net/pr/autotrash/
+This will make sure that your trash is cleaned up every time you log in.
+
+Homepage: http://www.logfish.net/pr/autotrash/
View
2  autotrash
@@ -127,7 +127,7 @@ def main(args):
logging.getLogger().setLevel(logging.WARNING)
if options.version:
- logging.info('''Version 0.0.5\nCopyright (C) 2008 A. Bram Neijt <bneijt@gmail.com>\nLicense GPLv3+''')
+ logging.info('''Version 0.0.6\nCopyright (C) 2008 A. Bram Neijt <bneijt@gmail.com>\nLicense GPLv3+''')
return 1
if options.days <= 0:
View
1  patches/README
@@ -1 +0,0 @@
-These are patches that I'll be working on in the future.
View
2  setup.py
@@ -3,7 +3,7 @@
setup(
name= 'autotrash',
- version= '0.0.5',
+ version= '0.0.6',
author= 'A. Bram Neijt',
author_email= 'bram@neijt.nl',
url= 'http://logfish.net/pr/autotrash/',
Please sign in to comment.
Something went wrong with that request. Please try again.