New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
as_store_from_bytes can't infer the icon path #315
Comments
Do we need the icon path when importing the dep11 file? Surely for gnome-software we just need to set it on the AsIcon directly? |
If the icon path is supposed to be derived from the location of the YAML file then we don't need the API specifically in appstream-glib. We can iterate over it later and generate it as necessary. For example, on my system the YAML for main comes from: I tried setting this path when we parse the YAML in |
…m raw data. Without the filename the icons can't be reliably located. Fixes hughsie#315
Turns out that GNOME Software is doing the icon path code itself, so this is fixed in https://gitlab.gnome.org/GNOME/gnome-software/merge_requests/408 |
I made some new AppStream methods that fix the icon path loading in https://github.com/robert-ancell/appstream-glib/tree/as-store-from-bytes-icon-path, not sure if they're still useful. |
as_store_from_bytes
doesn't have any path information so it can't infer the location of the icons in../icons/
relative to the AppStream XML/YAML. This is whatas_store_from_file
does (and actually ignores theicon_root
parameter passed).I'm not sure what the appropriate thing is to do here - should
as_store_from_bytes
have anicon_root
parameter or should this information be set elsewhere?The text was updated successfully, but these errors were encountered: