flatpak: Download appstream data on demand when missing
I've been notified that when the "Automatic Updates" are off, the plugins do not show any data when they did not have cached anything from earlier time. Like in case of the flatpak plugin:
15:29:37:0894 GsPluginFlatpak found remote OCI
15:29:37:0894 GsPluginFlatpak no OCI appstream metadata found: /home/test/.local/share/flatpak/appstream/OCI/x86_64/appstream.xml.gz
15:29:37:0894 GsPluginFlatpak found remote flathub
15:29:37:0894 GsPluginFlatpak no flathub appstream metadata found: /home/test/.local/share/flatpak/appstream/flathub/x86_64/active/appstream.xml.gz
I think it would make sense to download missing appstream data. not to update it, only when it's missing.
A possible steps (untested, but I guess the idea makes sense):
- start with automatic updates on and let it cache the data for all repositories/remotes
- turn off automatic updates
- add a new remote to Flatpak
- you do not see any application from it, because it does not have downloaded the appstream data