At the moment, the flatpak backend is not installed by default on Kubuntu 18.04. When one tries to install an app from flathub, e.g. by downloading and opening a ref-file (https://flathub.org/repo/appstream/org.audacityteam.Audacity.flatpakref), the file gets opened with kate. Of course, Kubuntu should install flatpak by default and I will submit a bug for that, but they may deny that request for political reasons (snappy). To be save, discover should provide an automatic install option, like gstreamer-based media players do it with patented codecs (with the help of packagekit afaik).
> Of course, Kubuntu should install flatpak by default No need for a bug; it's being discussed in https://phabricator.kde.org/T7566 Kubuntu folks are definitely open to using the Flatpak backend instead of or in addition to the Snap one, but the user experience in Kubuntu is a bit rough at the moment due to https://bugs.kde.org/show_bug.cgi?id=387790 Aleix, is there anything we can do to handle .flatpakref files in Discover even when the Flatpak backend isn't installed? Could we offer to install it and then install the original .flatpakref file?
We can find some way to have it happen, I'm not sure we can find a way that is elegant and not clunky. Note that some distros may decide not to even package the flatpak backend. Also the splitting is something packagers do and we can't keep track of the package name that packagers will give to the different plugins. That said, it would be technically possible to have discover install parts of itself when flatpak-specific features (such as flatpakref) are used.
Git commit 7f61173abeb6d6e99fc2a2776b3a9827985be8b6 by Aleix Pol. Committed on 31/05/2018 at 00:46. Pushed by apol into branch 'master'. When we know the plugin is missing, offer it M +10 -2 discover/DiscoverObject.cpp https://commits.kde.org/discover/7f61173abeb6d6e99fc2a2776b3a9827985be8b6