Created attachment 164061 [details] The arrows to set the priority are greyed out SUMMARY I cannot set the priority of my Flatpak repos in Discover STEPS TO REPRODUCE 1. Add the same repo with the same name via the flatpak CLI tool 2. Start Discover 3. The priority setting for Discover is broken OBSERVED RESULT Cannot set priority EXPECTED RESULT Can set priority SOFTWARE/OS VERSIONS Linux/KDE Plasma: Fedora Kinoite 39 (available in About System) KDE Plasma Version: 5.27.9 KDE Frameworks Version: 5.111.0 Qt Version: 5.15.11 ADDITIONAL INFORMATION This is the output of ```flatpak remotes``` on my system. Name Options flathub system flathub user I previously named the system repo as flathub-system and the user repo as flathub, priority setting worked fine in that case. But after removing all flatpak remotes and adding both the system and user with the same name (flathub), the priority setting became broken.
They're enabled for me on Fedora KDE (non-Kinoite). I wonder if Kinoite having an immutable base system is causing this.
(In reply to Nate Graham from comment #1) > They're enabled for me on Fedora KDE (non-Kinoite). I wonder if Kinoite > having an immutable base system is causing this. I recently removed the system flathub repo and readded it with the name "flathub-system" now the sorting arrows appear
Created attachment 164272 [details] The sorting section after readding the system flathub repo under a different name as flathub-system
Created attachment 164273 [details] Current result of flatpak remotes (keep in mind previous both were named flathub)
So it appears that... 1. If two flatpak repos share the same name, Discover greys out the sorting arrows 2. It specifically happens if one of the repo is a system repo, while the other one is a user repo 3. Removing, then readding back either the user or the system repo under a different name solves the issue 4. To reproduce, make sure you have no flatpak repos in your system, then run ` flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo ` (adds the flathub repo as a system repo with the name "flathub") ` flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo ` (adds the flathub repo as a user repo with the name "flathub") 5. To observe that otherwise sorting works fine, remove all flatpak repos, then run ` flatpak remote-add --if-not-exists flathub-system https://dl.flathub.org/repo/flathub.flatpakrepo ` (adds the flathub repo as a system repo with the name "flathub-system") ` flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo ` (adds the flathub repo as a user repo with the name "flathub")
Fascinating. Excellent investigation; I can reproduce that.
I would also like to add that Discover does not "Honor" my Flatpak repo priority even though I have it set correctly in the settings. Might or might not be related to this issue. Might also be that Discover is remembering the last used repo in the "Sources" in an App's info page, which might be confusing to users.
(In reply to Larina Loriasel from comment #7) > I would also like to add that Discover does not "Honor" my Flatpak repo > priority even though I have it set correctly in the settings. > Might or might not be related to this issue. > Might also be that Discover is remembering the last used repo in the > "Sources" in an App's info page, which might be confusing to users. I have rechecked, it appears that older apps I mistakenly downloaded from Flathub system repo, defaults to Flathub system repo in the "Sources" submenu instead of my user's Flathub repo that i set to have the highest priority While "new" apps which i have never downloaded or manually set the repo for in the "Sources" tab respect my flatpak priority
Created attachment 164395 [details] Flatpak Priority My current flatpak priority
Created attachment 164396 [details] App I have never installed or viewed I have never installed or viewed this app/app's page in discover, respects my flatpak priority
Created attachment 164397 [details] Previous app I have previously installed/viewed this app/app's page on Discover, it does not respect my flatpak priority Probably "remembers" the last selected source, which can be confusing
*** Bug 490678 has been marked as a duplicate of this bug. ***