Expand description
Freedesktop.org thumbnail cache directory, hashing, and validity rules. See https://specifications.freedesktop.org/thumbnail-spec/.
Functions§
- cached_
thumbnail_ path - The path this app would use to cache a thumbnail for
file_pathinsidecache_dir. - find_
existing_ thumbnail - Looks for a thumbnail already created by another application (file manager, etc.), checking freedesktop-standard cache sizes in order of preference.
- is_
cache_ valid - A cached thumbnail is valid as long as it exists and is not older than the source file.
- thumbnail_
cache_ dir - Returns (creating it if necessary) the freedesktop “normal” thumbnail cache directory.
- thumbnail_
hash - Computes the SHA1 hash of the file’s
file://URI, matching the hash used by pcmanfm and other freedesktop-compliant file managers for thumbnail cache keys.