Skip to content
March 14, 2008 / Marc Ordinas i Llopis

Finding a file’s nautilus thumbnail

Nautilus uses, as per the freedesktop.org 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

md5.new("file:///file/path").hexdigest()

I write this here so I remember next time.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>