Detect flatpak remotes from system installations
What happened:
- Configured flatpak with flathub, gnome nightly, kdeapps
$ flatpak remotes --show-details
Name Title URL Priority Options
flathub Flathub https://dl.flathub.org/repo/ 1 system
gnome-apps-nightly GNOME Nightly Applications https://sdk.gnome.org/nightly/repo-apps/ 1 system
gnome-nightly GNOME Nightly Runtime https://sdk.gnome.org/nightly/repo/ 1 system
kdeapps KDE Testing Applications http://distribute.kde.org/flatpak-apps-testing/ 1 system
-
Installed
org.gnome.Builder
and launched the app -
Create or Open a project and then notice that a notification in top right suggests things have been installed (eg
org.freedesktop.Sdk.Docs
) -
Now notice that new flatpak remotes have been added, crucially notice that flathub and gnome-nightly have been duplicated so that I have both a user and system with the same name and URL
$ flatpak remotes --show-details
Name Title URL Priority Options
flathub Flathub https://dl.flathub.org/repo/ 1 user
gnome Gnome Stable Runtimes https://sdk.gnome.org/repo/ 1 user
gnome-nightly GNOME Nightly Runtime https://sdk.gnome.org/nightly/repo/ 1 user
flathub Flathub https://dl.flathub.org/repo/ 1 system
gnome-apps-nightly GNOME Nightly Applications https://sdk.gnome.org/nightly/repo-apps/ 1 system
gnome-nightly GNOME Nightly Runtime https://sdk.gnome.org/nightly/repo/ 1 system
kdeapps KDE Testing Applications http://distribute.kde.org/flatpak-apps-testing/ 1 system
What I expected to happen:
At step 3 for GNOME Builder to auto detect that I have flathub
and gnome-nightly
configured as system remotes, so I do not need user ones.
The reasoning for this is that it impairs the usability of some flatpak commands. Eg when trying list the apps in a remote the following occurs
$ flatpak remote-ls flathub --app
Remote ‘flathub’ found in multiple installations:
1) user
2) system
Which do you want to use (0 to abort)? [0-2]:
It would be much better if GNOME Builder did not duplicate remotes that already exist with the same URL, and potentially use a different name to the system remote if one exists with the same name but different URL.