Skip to content

Instantly share code, notes, and snippets.

@STrRedWolf
Created October 4, 2020 13:07
Show Gist options
  • Save STrRedWolf/9743e6abb202bfc08623f665b6bb9fb6 to your computer and use it in GitHub Desktop.
Save STrRedWolf/9743e6abb202bfc08623f665b6bb9fb6 to your computer and use it in GitHub Desktop.
XFCE Small Utlities
#!/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