Created
October 4, 2020 13:07
-
-
Save STrRedWolf/9743e6abb202bfc08623f665b6bb9fb6 to your computer and use it in GitHub Desktop.
XFCE Small Utlities
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Remove a XFCE generated thumbnail | |
# | |
# Put this file in a safe place (I use ~/bin) | |
# Open Thunar, then navigate to Edit >> Create custom actions. | |
# Create a new action ("Remove Thumbnail") | |
# Command is: /path/to/this-file %f | |
# | |
# Doesn't handle groups. | |
# If there's more sizes, I don't know about them. | |
s=`echo -n "file://$1" | md5sum | cut -d ' ' -f 1` | |
rm ~/.cache/thumbnails/normal/$s.png | |
rm ~/.cache/thumbnails/large/$s.png | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment