App from a disabled repo can't be uninstalled from the details page
Please describe the issue you’re experiencing: If I install an app from Flathub and later disable the Flathub repo, I can no longer uninstall the app from the app details page. The trash icon no longer displays, because the source repo is missing from the drop-down menu. And for other sources, a regular Install button is displayed again.
The app can still be uninstalled from the Installed tab. However, it's somewhat inconvenient that you can't search in it, because search will bring you to the app details page, where you can't do it (even when the search result says "Installed"). So you have to search alphabetically. This also means you can't go from GNOME overview -> App Details to uninstall it, because again, there's no uninstall button on the app detail page.
See here:
gs-uninstall
Reproducer:
- Find an app available from multiple sources including Flathub
- Install app from Flathub
- Disable Flathub repo
- Try to uninstall the app from the app details page or through search - can't be done.
- You can do it if you don't invoke search on the Installed tab - no sure how many people figure that out.
What Linux distribution are you using, and what kind of package (RPM, deb, flatpak, etc.) are you experiencing the problem with?
Fedora 38 development
gnome-software-44~rc-1.fc38.x86_64
Please attach a log of the issue, by running the following commands, reproducing the issue, and then attaching gnome-software.log
here:
pkill gnome-software
gnome-software --verbose &> gnome-software.log
I'll provide it if requested.