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

Do not display screenshots with environment="windows" #4105

Closed
CarlSchwan opened this issue Nov 5, 2024 · 5 comments · Fixed by #4106
Closed

Do not display screenshots with environment="windows" #4105

CarlSchwan opened this issue Nov 5, 2024 · 5 comments · Fixed by #4106

Comments

@CarlSchwan
Copy link

For example: https://flathub.org/apps/org.kde.neochat the 2 last screenshots should not be displayed because they are marked as for Windows https://invent.kde.org/network/neochat/-/blob/master/org.kde.neochat.appdata.xml?ref_type=heads#L402

@bbhtt
Copy link
Contributor

bbhtt commented Nov 5, 2024

environment="windows" does not seem valid according to spec.

https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-screenshots

Optionally, a screenshot may also have an environment property. This string property denotes the GUI environment the screenshot was recorded in, in the form of {env}:{style}, where {env} is a desktop-environment name in lowercase and {style} is a specific style that the desktop environment recognizes, e.g. light and dark for light and dark themes.

It's not in the form of env:style, and Windows is not a DE.

@razzeee
Copy link
Member

razzeee commented Nov 5, 2024

@bbhtt
Copy link
Contributor

bbhtt commented Nov 5, 2024

Yea it's weird, @ximion are env's supposed to strictly follow the format or not?

@CarlSchwan
Copy link
Author

Also the spec is a bit wrong about env:style, for example only gnome and gnome:dark but not gnome:light are allowed because only values in the desktop-style-ids.txt are allowed.

@bbhtt
Copy link
Contributor

bbhtt commented Nov 5, 2024

Yea it's weird, @ximion are env's supposed to strictly follow the format or not?

Ah I guess this the exact same question as ximion/appstream#667

bbhtt added a commit to bbhtt/website that referenced this issue Nov 5, 2024
bbhtt added a commit to bbhtt/website that referenced this issue Nov 5, 2024
bbhtt added a commit to bbhtt/website that referenced this issue Nov 5, 2024
bbhtt added a commit to bbhtt/website that referenced this issue Nov 5, 2024
bbhtt added a commit to bbhtt/website that referenced this issue Nov 5, 2024
bbhtt added a commit to bbhtt/website that referenced this issue Nov 6, 2024
@razzeee razzeee closed this as completed in 49ebe93 Nov 6, 2024
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 a pull request may close this issue.

3 participants