Sideloading Flatpaks is kind of weird right now. You sometimes don’t see the application’s icon or description (which is not very interesting, since the site you downloaded the flatpak bundle or flatpakref from probably already told you what the app does), and you don’t seem to see the permissions that the app will be given, which is the most important information.
Elementary has a helper app for sideloading flatpaks, which seems to do this a bit nicer. The fact that the app is sandboxed (or not) is clearly visible, and it makes it clearer to the user that this app hasn’t really been reviewed by your distro or Flathub. Maybe the design from there could be an inspiration?
To be clear, I meant ‘sideloading’ as “installing a Flatpak from somewhere other than the system’s main repositories (i.e. from a third-party repository via a .flatpakref or from a bundle)”, since that’s the case where you should probably say “Hi, this application wasn’t reviewed by anybody trusted and could be bad, here are its permissions, do you still want to install?”
Right. Yes, my apologies. Missed that. Had always heard it in the context of “download an APK from somewhere, copy to mobile phone via USB and install”. My bias kicked in.
Is there a way to install flatpaks using Discover without adding the repo, or is this about how Discover displays flatpaks that have been installed some other way? I mostly manage flatpaks using the CLI, so I’m not sure what all Discover can do. I see what you mean with flatpaks I have built locally, in Discover there is not much information displayed about them.
Well, I’m talking about installing a flatpak from a .flatpak bundle or from a .flatpakref, which adds the repository it’s pointing to alongside installing the app (the screenshot shows how it warns you that other software from the repo will appear in Discover).
My point is mostly that what is shown when installing from a file or flatpak+https:// URL is not really relevant, and what is relevant isn’t (at the very least, prominently) shown.
(I would take more screenshots, but it seems I broke my Discover and now it freezes when I try to open a flatpakref )
Yeah, it would probably make sense to do this for distro packages (and snaps too), since you don’t really need to know e.g. the description of the package you just downloaded from the site that probably already told you what it does.