Builder does not reuse available flathub remote
Steps to reproduce:
- Add flathub remote using the official recommendation (flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo)
flatpak remotesshows "flathub system"
- Install 3.36.1 (latest stable) from Flathub
- Create a new project using the Rust template
- Accept installing SDK and SDK extensions (3.34 SDK and org.freedesktop.Sdk.Extension.rust-stable)
flatpak remotesshows "flathub system; flathub user;"
Future runs of
flatpak install by the user will show the duplicate flathub remotes. Example:
$ flatpak install veloren Looking for matches… Remotes found with refs similar to ‘veloren’: 1) ‘flathub’ (system) 2) ‘flathub’ (user) Which do you want to use (0 to abort)? [0-2]:
Proposal: Re-Use flathub system remote (as it is the official way to to install flathub) if already present instead of adding a duplicate flathub user remote.