Workaround Flathub remote being disabled on Fedora 36 by default
Starting with Fedora 36 Flathub is explicitly disabled.
I'm not sure about my formatting as Github doesn't allow me to test how my changes will look. I just copied the formatting above it for enabling the repo.
This looks like a bug to me. Also, I don't like adding command line step to the guide if everything else is done using GUI.
There's a problem with my pull request anyways. Really it should be.
flatpak remote-delete flathub
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
It seems Fedora 36 has a "filtered" Flathub remote added but disabled. The problem with my previous pull request is enabling the Flathub remote without first removing it leaves a "filtered" version without access to all the flatpaks on Flathub. I could update my pull request but it sounds like you'd like to handle this a different way.
Hm, this really looks like a Flatpak bug to me. It should ideally handle replacing filtered Flathub remote with the full one the same way as GNOME Software does.
Hm, this really looks like a Flatpak bug to me. It should ideally handle replacing filtered Flathub remote with the full one the same way as GNOME Software does.
In the mean time better documentation is still a better workaround than waitng for a fix that might not even make it to the concerned distro.
В любом случае, есть проблема с моим запросом на вытягивание. Действительно должно быть.
flatpak remote-delete flathub flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepoКажется, в Fedora 36 добавлен «отфильтрованный» пульт Flathub, но он отключен. Проблема с моим появлением запроса на вытягивание происходит в том, что включение пульта Flathub без его появления вызывает появление «отфильтрованной» версии без доступа ко всем обнаруженным пакетам на Flathub. Возможно, вы хотели бы выйти на улицу с другой стороны.
Yes, instead "pure" Flathub Fedora 36 have some-called "Fedora Flathub Selection" with filter - /usr/share/flatpak/fedora-flathub.filter. It is not clear whether this filter will be restored during Fedora updates if you remove it, so simply removing flathub and immediately installing it according to the instructions from the official website seems to be the best solution. I.e. the instruction must be changed exactly as you suggested, accompanied by explanations for users why it was changed.
Hm, this really looks like a Flatpak bug to me. It should ideally handle replacing filtered Flathub remote with the full one the same way as GNOME Software does.
In the mean time better documentation is still a better workaround than waitng for a fix that might not even make it to the concerned distro.
True, but it should ideally be fixed in Flatpak itself (and patched in Fedora) because it clearly is a bug. Fedora ships with a filtered Flathub by default and this seems to be an issue with replacing the filtered Flathub with regular one. GNOME Software correctly replaces it and enables the remote afterwards while CLI Flatpak does not enable it for some reason (probably because the original filtered remote is disabled by default).
I updated my pull request. Frankly I don't know what I'm doing. Something does need to be done though. Flathub's install instructions for Fedora have been broken for months now. Even if the solution isn't the cleanest let's get it fixed for users.
This should ideally be reported as a Fedora-related Flatpak issue to the Red Hat Bugzilla, because it definitely is a bug.
Possibly related: https://github.com/flatpak/flatpak/issues/4831#issuecomment-1084929364
Is this workaround still needed?
Well I don't know what is correct steps here but today I installed Fedora Silverblue 37 and trying to install some flathub flatpak but unable to install it. I found flathub remote is installed but disabled as shown
$ flatpak remotes --show-disabled
Name Options
fedora system,oci
fedora-testing system,disabled,oci
flathub system,disabled
Then I did
$ flatpak remote-modify --enable flathub
$ flatpak remotes
fedora system,oci
flathub system
Now I am able to install any flathub flatpak on Fedora. But yes it will still remain filtered flathub repo. So this section of Fedora https://github.com/flatpak/flatpak.github.io/blob/source/data/distro.yml#L48 should be updated otherwise those who prefer command-line usage will not understand how to enable or install from flathub repo.
If this is still a problem, please report it to the Red Hat Bugzilla, then propose the ticket as Fedora 37 blocker here. Thanks!
By the way, were you adding the Flathub repo using GUI (GNOME Software) or using a terminal?
If this is still a problem, please report it to the Red Hat Bugzilla, then propose the ticket as Fedora 37 blocker here. Thanks!
I don't think there is anything for Fedora to do. Its the instructions on how to enable flathub repo using terminal and I am referencing only https://github.com/flatpak/flatpak.github.io/blob/source/data/distro.yml#L48 on how to enable it if it already exists in disabled state.
By the way, were you adding the Flathub repo using GUI (GNOME Software) or using a terminal?
Using terminal. If adding any further information to https://flatpak.org/setup/Fedora looks difficult then let's stop any further discussion here. I anyway know now how to enable flathub repo.
Thank you.
If I remember correctly, the original plan was to allow users to replace the filtered Flathub with a full one without the need to remove the default filtered one first. So I think that this is actually a bug and should be reported to the Red Hat Bugzilla. But I may be wrong.