Finding a file’s nautilus thumbnail

Nautilus uses, as per the spec, an MD5 hex digest of the file’s URL as the thumbnail filename and keeps it as a PNG image in ~/.thumbnails/normal. To get this MD5 with pyton, use"file:///file/path").hexdigest()

I write this here so I remember next time.

Leave a Reply

Your email address will not be published.