Bug 406451 - After adding the Flatpak backend or additional Flatpak repos, refresh everything so Discover doesn't need to be restarted
Summary: After adding the Flatpak backend or additional Flatpak repos, refresh everyth...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: Discover
Classification: Applications
Component: Flatpak Backend (show other bugs)
Version: 5.15.4
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords:
: 401858 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-04-11 21:40 UTC by Peter Eszlari
Modified: 2019-06-15 00:19 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Eszlari 2019-04-11 21:40:17 UTC
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.
Comment 1 Nate Graham 2019-04-30 13:05:51 UTC
*** Bug 401858 has been marked as a duplicate of this bug. ***
Comment 2 Peter Eszlari 2019-05-02 12:19:00 UTC
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
Comment 3 Nate Graham 2019-05-02 18:42:48 UTC
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.
Comment 4 Peter Eszlari 2019-05-03 10:48:58 UTC
Yes, but when the backend is not installed then in most cases that's because flatpak is not installed at all.
Comment 5 Nate Graham 2019-05-03 13:01:36 UTC
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.
Comment 6 Aleix Pol 2019-06-15 00:15:46 UTC
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.
Comment 7 Nate Graham 2019-06-15 00:19:26 UTC
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?