Hello everyone. Just looking for some info before heading over to bugs.kde.org
I have added multiple flatpak repo’s to my system, but can’t seem to get them to obey the priority set by me. According to the man page for ‘flatpak remote-add’;
“Unless overridden with the –user or –installation options, this command changes the default system-wide installation.”
“-system Modify the default system-wide configuration.”
So I understand that the default is to install a system-wide repo, but when I add user repo’s with a higher priority than system repos, flatpak ignores this.
Also from the ‘flatpak remote-add’ man page;
“–prio=PRIO Set the priority for the remote. Default is 1, higher is more prioritized. This is mainly used for graphical installation tools. It is also used when searching for a remote to provide an app’s runtime. The app’s origin is checked before other remotes with the same priority.”
This gives me the impression that flatpak will organise all 6 repos according to priority.
Commands entered to add repos;
flatpak remote-add --prio=1 system1 https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak remote-add --prio=2 system2 https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak remote-add --prio=3 system3 https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak remote-add --prio=4 user4 –user https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak remote-add --prio=5 user5 –user https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak remote-add --prio=6 user6 –user https://dl.flathub.org/repo/flathub.flatpakrepo
Here’s a screenshot of the config;
When trying to install software with the command ‘flatpak install [SOFTWARE]’, I would expect the order of repos offered to me to be;
User6
User5
User4
System3
System2
System1
But instead the order presented is;
[johnl@john-80ew ~]$ flatpak install gimp
Looking for matches…
Remotes found with refs similar to ‘gimp’:
- ‘system3’ (system)
- ‘system2’ (system)
- ‘system1’ (system)
- ‘user6’ (user)
- ‘user5’ (user)
- ‘user4’ (user)
Which do you want to use (0 to abort)? [0-6]:
————————————————————————————————————————————
This behaviour is replicated in Discover;
Flatpak is ordering the repos highest system to lowest system, THEN highest user to lowest user regardless of the priority set with the “–prio=” switch. I can’t tell if this is a bug or a feature.
If it is a feature, i.e. system repos are default BUT this will override repo priority set by the user, then I can’t find anything in the man pages to suggest this is the correct behaviour.
So I thought I’d post here first before heading over to bugs.kde.org just to see if anyone can shed any light on this.
Thanks for any replies!

