app-center icon indicating copy to clipboard operation
app-center copied to clipboard

Use appstream.dart for packagekit icons and screenshots

Open Feichtmeier opened this issue 1 year ago • 2 comments

Unlike snapd, packagekit does not provide any icons or screenshots of the apps. So to get those we need appstream.dart, which should be used in the package_service.dart here to fetch the metadata for X packages ad store them

IMO since snapd is so very fast with getting icons and screenshots I would not slow this app down by using appstream for snaps - Opinons ? @oSoMoN @jpnurmi @Jupi007

Depends on https://github.com/canonical/appstream.dart/issues/15

Feichtmeier avatar Aug 31 '22 07:08 Feichtmeier

Maybe a stupid question, but can't you just conditionally fetch the app icon: false for snap, true for other?

Jupi007 avatar Aug 31 '22 10:08 Jupi007

I haven't looked in the implementation details, but from your description of the problem I would indeed recommend using appstream only for packages where the icons/screenshots are not available otherwise (i.e. not snaps).

oSoMoN avatar Aug 31 '22 10:08 oSoMoN