diff --git a/docs/xml/catalog-iconcache.xml b/docs/xml/catalog-iconcache.xml index ad180751..c01c9f82 100644 --- a/docs/xml/catalog-iconcache.xml +++ b/docs/xml/catalog-iconcache.xml @@ -20,9 +20,11 @@
Filesystem locations - All icons of type cached must be placed in /usr/share/swcatalog/icons/%{origin}/%{size}/ or /var/cache/swcatalog/icons/%{origin}/%{size}/, + All icons of type cached must be placed in /usr/share/swcatalog/icons/%{origin}/%{size}/ or /var/(lib|cache)/swcatalog/icons/%{origin}/%{size}/, where origin is the AppStream data origin defined in the AppStream data file (see ), and size is 64x64 or 128x128 depending on the size of the icon. And icon might be present with different sizes in both directories. + When finding cached icons, they must only be searched for in the same location where the accompanying catalog metadata is located. + For example, icons for /var/lib/swcatalog/xml/debian-jessie-main.xml.gz must only be looked up in /var/lib/swcatalog/icons/debian-jessie-main/ and not also in locations in /var/cache/ or elsewhere. For example the cache icon krita.png of a component in a data file with the origin jessie should be stored in