elementary / appcenter-web

Web frontend for viewing AppCenter apps
https://appcenter.elementary.io
The Unlicense
43 stars 11 forks source link

Filter GNOME apps #75

Open cassidyjames opened 3 years ago

cassidyjames commented 3 years ago

Web and Evince show up since they are available in the remote, but they are not really the same as other curated AppCenter apps.

dar5hak commented 3 years ago

I could give this a shot in a day or two.

BTW what is the rationale for showing first-party elementary apps (like Calculator) here? I get that they show up in the GTK AppCenter, but so do Web and Evince.

cassidyjames commented 3 years ago

@dar5hak they're first-party apps shipped as Flatpak in AppCenter, so it makes sense to show them. In the future we could even ship new but not-preinstalled apps in AppCenter.

I would be open to showing the GNOME apps as well if we rebranded them as we do in the OS itself, as these apps are not really the same as the upstream versions. To do so, we'd need to ship updated AppStream for them, which would fix them in the GTK client as well.

So I'm okay with either approach, but filtering them here seems like a quicker first step until we can sort it out on the AppStream side.

dar5hak commented 3 years ago

Makes sense. I see the possibility where some first-party app isn’t a candidate for being pre-installed, say, something targeted at developers.

dar5hak commented 3 years ago

I haven't been able to work on this, but for anyone who wants to try, these resources will be helpful:

dar5hak commented 3 years ago

No luck with the custom filter.

I tried with contains but apparently Liquid doesn't have a straightforward not operator, so you can do this:

flatpak_apps | where_exp:"app","app.id contains 'org.gnome'"

but not this:

flatpak_apps | where_exp:"app","not app.id contains 'org.gnome'"