#2039 appstream-builder metadata empty?
Closed: Fixed 2 years ago by praiskup. Opened 2 years ago by praiskup.


I was pointed by @praiskup at https://download.copr.fedorainfracloud.org/results/phracek/PyCharm/fedora-rawhide-x86_64/appdata/appstream-failed.xml.gz which contains:

"""
<vetos>
<veto>Failed to load icon: image format was not recognized: /usr/share/icons/hicolor/scalable/apps/pycharm-community.svg</veto>
<veto>Has no Icon</veto>
</vetos>
"""

Is a valid thing? Isn't it strange that it's not able to recognize an SVG? Do you know @mcrha and @rhughes ?

I've no idea of the appstream, I'm sorry.

You need a png icon for AppStream I'm afraid. There's too much difference when you render the .svg with rsvg/inkskape etc. Also, shipping then rendering 200 svgs takes a lot of CPU time.

Thank you Richard and Milan! @phracek would it be possible to change the icon?

@tpopela Yes, of course, I will handle it. I need to find out and then I will change the path.

@rhughes I was trying to solve this problem and found, that PNG icon is already part of SPEC file. https://github.com/phracek/pycharm-community-edition/blob/master/pycharm-community.spec#L81
SVG file is present there as well https://github.com/phracek/pycharm-community-edition/blob/master/pycharm-community.spec#L83
If it is correct, then it should be enough to copy PNG file from L81 to location /usr/share/data/icons/hicolor/scalable/apps/%{name}.png

I will try to test it and we will see.

But any hint would be appropriate if I am wrong.

PNG icons added. Should be fixed now.

I enabled the PyCharm COPR repo in the GNOME Software and once the PackageKit updated its cache the app was provided to me. The only tricky part was to wait for the PackageKit, but it's nothing you should worry about. Your repo is fixed now. Thanks.

Thanks, so I think this can be marked as fixed.

Metadata Update from @praiskup:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Login to comment on this ticket.

Metadata