On 24 September 2015 at 19:13, Zbigniew Jędrzejewski-Szmek
<zbyszek(a)in.waw.pl> wrote:
On Fri, Sep 18, 2015 at 11:28:44AM +0100, Richard Hughes wrote:
> postbooks: specified icon '/usr/share/postbooks/images/icon128x32.png'
> does not exist
The png is in the rpm... What's going on here?
It's not in a standard search path for icons:
https://github.com/hughsie/appstream-glib#what-is-an-application says:
- Icons MUST be installed in /usr/share/pixmaps/*,
/usr/share/icons/*, /usr/share/icons/hicolor/*/apps/*, or
/usr/share/${app_name}/icons/*
The reason for that rule is two-fold:
* when we build the metadata we don't actually decompress all the rpm
contents, just the parts we're interested in (makes building about 50x
faster as lzma is sloooow)
* when we have a sandboxed future icons will need to be a standard
location rather than spread over /usr
In this case, it's probably enough to just add a symlink from
/usr/share/postbooks/images/icon128x32.png to /usr/share/icons/ so
that it gets extracted, although icon128x32.png doesn't sound terribly
promising for a HiDPI icon.
Richard.