From 07a785eb02848af691e5f02b216ce6a9c1e55e3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Correa=20G=C3=B3mez?= Date: Sun, 29 Jan 2023 16:33:14 +0100 Subject: [PATCH] docs: Clarify the locations where catalog icons should be placed Rationale: https://gitlab.gnome.org/GNOME/gnome-software/-/merge_requests/1574#note_1625290 Co-authored-by: Matthias Klumpp --- docs/xml/catalog-iconcache.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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