Uninstalling Flatpak application too quickly glitches it
Description of problem:
When a Flatpak application is uninstalled right after it is installed by GNOME Software, it causes GS to show the application as uninstalled, but the application actually stays installed. When clicking the "Install" button again, a "Unable to install as not supported" error is shown instead.
Version-Release number of selected component (if applicable):
gnome-software-3.31.90-1.fc31.x86_64
How reproducible:
Every time.
Steps to Reproduce:
- Use latest Fedora (Silverblue) Rawhide system.
- Add Flathub repo using GNOME Software: https://flatpak.org/setup/Fedora/
- Install some Flatpak app.
- Click the "Remove" button right after the app is installed.
- Try to install the same app again.
Additional info:
From GS log, when I click "Remove":
13:58:09:0268 Gs State change on system/flatpak/flathub/desktop/com.uploadedlobster.peek/stable from installed to available is not OK
Restarting the GS process workarounds the issue.