Bug 498260

Summary: Include Flathub repository by default when Flatpak backend is in use
Product: [Applications] Discover Reporter: Fernando M. Muniz <fernandommuniz>
Component: discoverAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: wishlist CC: aleixpol, nate
Priority: NOR    
Version First Reported In: 6.2.5   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Fernando M. Muniz 2025-01-04 21:03:49 UTC
I'm requesting that flatpak repos gets included in Discover itself by default.
My main reason is because of it's vast library of apps, and making the app actually useful out-of-box on Arch Linux.

...Probably a extremely bad idea, but I want to know why it would be.
Comment 1 Nate Graham 2025-01-04 22:46:11 UTC
Heh this was actually one of the first things I requested too, almost 8 years ago.

We can't make the Flatpak backend mandatory for Discover, or else the app couldn't be used at all on distros that intentionally don't include Flatpak support out of the box. For example: Ubuntu. If we did this, they would have to patch out Discover's Flatpak support or stop shipping the app entirely. The first would annoy them, the second would hurt everyone.

However, we could feasibly have Discover auto-add the Flathub repo if you have Discover's Flatpak backend installed. Right now you need to manually click an "Add Flathub" button in the app to do this, which I don't think is needed anymore now that Flathub has gone mainstream.

Re-titling to be about including Flathub by default when the Flatpak backend *is* present.
Comment 2 Fernando M. Muniz 2025-01-04 22:59:18 UTC
(In reply to Nate Graham from comment #1)
> Heh this was actually one of the first things I requested too, almost 8
> years ago.
> 
> We can't make the Flatpak backend mandatory for Discover, or else the app
> couldn't be used at all on distros that intentionally don't include Flatpak
> support out of the box. For example: Ubuntu. If we did this, they would have
> to patch out Discover's Flatpak support or stop shipping the app entirely.
> The first would annoy them, the second would hurt everyone.
> 
> However, we could feasibly have Discover auto-add the Flathub repo if you
> have Discover's Flatpak backend installed. Right now you need to manually
> click an "Add Flathub" button in the app to do this, which I don't think is
> needed anymore now that Flathub has gone mainstream.
> 
> Re-titling to be about including Flathub by default when the Flatpak backend
> *is* present.

Would it be possible to make it so if the user types in the terminal "flatpak install flathub org.kde.kdenlive" the Discover would interpret as *this user wants flatpak enabled and install this app*, or that would also cause problems with distros?
Comment 3 Nate Graham 2025-01-04 23:00:57 UTC
Well, the user needs to have the `flatpak` executable already installed if they want something sensible to happen when they try to run it. :) Discover isn't involved in what you do in your terminal window.
Comment 4 Aleix Pol 2025-01-04 23:27:12 UTC
This is a distro setting, not a Discover one. Discover already goes out of its way by offering to add Flathub.