Skip to content
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

docs: Update to remove icon tag from Metadata #276

Closed
wants to merge 1 commit into from
Closed

docs: Update to remove icon tag from Metadata #276

wants to merge 1 commit into from

Conversation

Siosm
Copy link

@Siosm Siosm commented Jun 12, 2020

This is no longer accepted by appstream-util validate-relax:

$ appstream-util validate-relax org.kde.okteta.appdata.xml
org.kde.okteta.appdata.xml: FAILED:
• tag-invalid : not allowed in desktop appdata
• tag-invalid : stock icon is not valid [okteta]
Validation of files failed

See also discussion in keepassxreboot/keepassxc#1131

This is no longer accepted by appstream-util validate-relax:

$ appstream-util validate-relax org.kde.okteta.appdata.xml
org.kde.okteta.appdata.xml: FAILED:
• tag-invalid           : <icon> not allowed in desktop appdata
• tag-invalid           : stock icon is not valid [okteta]
Validation of files failed

See also discussion in keepassxreboot/keepassxc#1131
@ximion
Copy link
Owner

ximion commented Jun 12, 2020

appstream-util is wrong and not spec compliant, Please get that fixed in appstream-util or validate with appstreamcli instead or just remove the explicit icon tag from your metainfo file and have the AppStream-parsing tools fetch the icon from an associated .desktop file.

@ximion ximion closed this Jun 12, 2020
@travier
Copy link

travier commented Jun 12, 2020

Will do. Thanks.

@ximion
Copy link
Owner

ximion commented Jun 12, 2020

appstream-util is wrong and not spec compliant[...]

Just to avoid any misunderstanding: Not spec compliant in this instance (some apps like WINE actually rely on that feature, and tools which generate their .desktop files from metainfo files via appstreamcli make-desktop-file do too, so do projects who want to override a .desktop-file-specified icon in metainfo files for some reason (I only saw that particular case once though)).
This patch would have removed support for icons from the specification entirely, for all component types, btw, which is why CI failed ;-)

@travier
Copy link

travier commented Jun 12, 2020

I found hughsie/appstream-glib#360 & hughsie/appstream-glib#243 for reference for anybody looking for more history.

@sergiomb2
Copy link

@ximion
Copy link
Owner

ximion commented Aug 18, 2021

What do you mean? The documentation was always correct on this, AFAIR.

@sergiomb2
Copy link

sergiomb2 commented Aug 18, 2021

sorry I though I was point to icon section https://www.freedesktop.org/software/appstream/docs/chap-CollectionData.html#tag-ct-icon

in icon section document says that<icon type="stock">is valid when apparently is not.

@ximion
Copy link
Owner

ximion commented Aug 18, 2021

It is and always has been valid though. appstream-glib simply had a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants