After adding a new flatpak repo (Flathub), searching for apps in this repo immediately doesn't work. one has to restart Discover first. It would be better if this was done automatically or at least the user would be asked. Also after installing the flatpak backend from Discover, a restart is need. But in this case, a restart of the session, to make menu entries show up.
*** Bug 401858 has been marked as a duplicate of this bug. ***
Actually, after installing the flatpak backend, restarting the session might not be enough, but a restart of the whole system is needed: https://github.com/flatpak/flatpak/issues/1256
That's only if Flatpak itself was not already installed, right? If Flatpak support was already there but the Discover backend or Flathub repo (or some other repo) weren't already installed, hopefully a fully restart isn't required.
Yes, but when the backend is not installed then in most cases that's because flatpak is not installed at all.
Yeah, when that's the case, we should probably have Discover display an InlineMessage telling the user to reboot the machine, with a reboot button in it.
PackageKit supports telling the user that the system needs a reboot or whatever it may need. If PackageKit has that information Discover will show it to the user. This is not something that can be tackled within Discover. Just adding a repository, if the session is properly configured, works.
But this isn't about PackageKit, it's about Flatpak. When the session already has Flatpak installed, then sure, everything works. But when Discover has to install Flatpak itself as a part of installing the Flatpak backend, then things won't work until the system is restarted, and Discover could at least alert the user of this, right?