appstream-glib
appstream-glib copied to clipboard
Screenshot maximum size is arbitrary and not mentioned in the spec
The validator currently requires screenshots to have a maximum size of 1600x900. This is however not mentioned in the specification at all. Is there any reason for this arbitrary limitation?
Does using validate-relax help in this case?
You should be validating with appstreamcli for your own project, and we are actually working on moving Flathub to that too, so this will no longer be an issue in future (and tagging screenshots by display dimensions will probably be the future thing we do: https://github.com/ximion/appstream/issues/410)
This seems to be a wider problem than just the screenshot dimensions. Many of the checks are seemingly arbitrary¹, and there are even things the specification suggests that aren't checked (<provides>):
https://www.freedesktop.org/software/appstream/docs/chap-Quickstart.html#sect-Quickstart-DesktopApps
From my perspective, the issue seems to be that no one is updating the specification with what is considered best practices.
It would be nice as an application developer to have some documentation of what's expected, and not just run a tool and just blindly follow whatever it tells me.
¹ They seem to try to follow Flathub's requirements, which are undocumented as far as I can tell