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

Check for icon sizes #244

Closed
hadess opened this issue Dec 30, 2023 · 6 comments · Fixed by #245
Closed

Check for icon sizes #244

hadess opened this issue Dec 30, 2023 · 6 comments · Fixed by #245

Comments

@hadess
Copy link
Contributor

hadess commented Dec 30, 2023

I've just built BambuStudio and didn't have smaller size icons installed, just 256x256 and 512x512.

This resulted in a broken icon in gnome-shell.
image

The linter should probably check, after the build, that the software installs a wider array of icon sizes.

@bbhtt
Copy link
Contributor

bbhtt commented Dec 30, 2023

Your 128px icon is named wrong, it wasn't exported at all.

image

The icon name in the exported desktop file is wrong. It can't load an icon flatpak didn't export.

The linter should start parsing desktop files to check if everything is correct

image

@bbhtt
Copy link
Contributor

bbhtt commented Dec 30, 2023

The linter should probably check, after the build, that the software installs a wider array of icon sizes.

This depends on application to application. Some might require a 16px png icon specifically for tray, if it is a svg there is nothing to check, for most max of 512px is enough because appstream creates 64px and 128px pngs from it

Right now the linter only checks if a 128px icon is present.

@hadess
Copy link
Contributor Author

hadess commented Dec 30, 2023

There were certainly a whole bunch of errors in that code. My excuse is that the build takes ages... Seems that we agree that there's room for improvement on the linter side though, right?

@bbhtt
Copy link
Contributor

bbhtt commented Dec 30, 2023

Yea, it should definitely check desktop files, which would've caught this. I thought appstream would've failed here, given how picky it is.

@hfiguiere
Copy link
Contributor

if it export a 256x256 or 512x512, appstream compose will generate what is need things will work.

we do check icon size on buildbot. Even before the linter.

@bbhtt
Copy link
Contributor

bbhtt commented Dec 31, 2023

#245 will catch the main issue here.

The icon name in the exported desktop file is wrong.

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