4. Thumbnail Directory

For every user, there must be exactly one place where all generated thumbnails are stored. This thumbnails directory is located in the user's XDG Cache Home, as defined by the XDG Base Directory Specification. Namely, if the environment variable $XDG_CACHE_HOME is set and not blank then the directory $XDG_CACHE_HOME/thumbnails will be used, otherwise $HOME/.cache/thumbnails will be used.

4.1. Directory Structure

The thumbnails directory will have the following internal structure:


The meaning of the directories are as follows:


You must not create/save thumbnails for any files you will find in these directories. Instead load and use these files directly.