gnome thumbnail remover Code
only remove thumbnails which are not necessary
Brought to you by:
arrangeplus
| File | Date | Author | Commit |
|---|---|---|---|
| README.md | 2014-09-18 |
|
[5113c8] README enh |
| gnome_thumb_remover.c | 2014-09-18 |
|
[7fc3ea] better messaging + README |
gnome thumbnail analyser and remover
sudo command if you are already root)gcc -O2 -Wall -o gtrm gnome_thumb_remover.c && sudo mv gtrm /usr/local/bin/gtrm && sudo chown root:root /usr/local/bin/gtrm
gtrm ~/.thumbnail/normal
Usage: ./gtrm [option] FILE|DIR [FILE|DIR] ...
-f | --format <format> ... the format of the output (see below) (default: 'both' for files to be removed)
-q | --quiet ... no output with the exception of errors (default: only print the files to be removed)
-u | --print-URI ... print full file URI (default: just the path)
-a | --print-all ... print out all files (default: only print the files to be removed)
-k | --keep-nonfile ... don't remove other than 'file:' files (default: remove all 'trash:' and other schemes)
-r | --remove ... remove superfluous files (default: just print them out)
-i | --interactive ... ask before each removal, implies --remove (default: no questions asked)
-v | --verbose ... be a bit more verbose (implies --print-all and --print-URI)
-d | --debug ... same as --verbose
-h | --help ... display this help and exit
# list the files which could be removed
$ ./gtrm ~/.thumbnails/normal
105d94d97c4b36260f4754cce37bc449.png -> trash:///test.jpg *** TO BE REMOVED ***
cc7ddf14361598313ebf3b7cbda0465d.png -> /media/30D4-E958/alive.mp4 *** TO BE REMOVED ***
# the same as above, use file expansion
$ ./gtrm ~/.thumbnails/normal/*
~/.thumbnails/normal/105d94d97c4b36260f4754cce37bc449.png -> trash:///test.jpg *** TO BE REMOVED ***
~/.thumbnails/normal/cc7ddf14361598313ebf3b7cbda0465d.png -> /media/30D4-E958/alive.mp4 *** TO BE REMOVED ***
# list & remove
$ ./gtrm -r ~/.thumbnails/normal
~/.thumbnails/normal/105d94d97c4b36260f4754cce37bc449.png -> trash:///test.jpg --- removed ---
~/.thumbnails/normal/cc7ddf14361598313ebf3b7cbda0465d.png -> /media/30D4-E958/alive.mp4 --- removed ---