Discover as flatpak

I came across this thread: https://discuss.kde.org/t/discover-flatpak-package-does-not-exist/24071
and I was wondering if it is technically even possible to have Discover installed as a flatpak and stil being able to do what it is doing when installed as a “normal” package.

The reason I ask this is I am using Ublue Aurora at the moment and the developers want to remove Discover and replace it with Bazaar, also installed as flatpak. I have that installed now and it does work, but I don’t like it because it is not a KDE program. Using a distro with KDE should have Discover installed as package-manager, at least that is my believe. I have used it for many years and it is a great program.
They wanted to do the same with Konsole but somehow they changed that opinion (for now?) and Konsole is still part of the base system.

Does somebody know if it is technically possible to have a flatpak version of Discover which does the same as it is doing now?
Thanks.

I don’t know which distribution you’re using, but on CachyOS, you need to install the flatpak-kcm package

due to how integrated the package manager needs to be on a system, i would think only a native package or snap would work well enough to do all the things.

the kde page only offers native or snap.

there was someone else here (or maybe reddit) trying to get bazaar to work on plasma and it was missing some key features that weren’t working (don’t know for sure if it if was a flatpak tho).

I would think it’s at least possible. A Flatpak with appropriate permissions can spawn a process on the host - so a Flatpak Discover should be able to spawn pkcon and flatpak and install packages that way.

I don’t know how much code change is involved to make it work.

I think they’re swinging back towards Konsole if anything. Bazzite KDE came with Ptyxis for a while, but now it’s gone back to Konsole.

It’s great that everyone’s allowed to believe what they wish, that their subjective preference is what should be default…

My opinion is that Discover sucks - It’s ‘ok’ for browsing, but I prefer even Pamac-manager for searching - but it’s really impossible to beat Firefox for that…

For actually managing packages and stuff like that, I’m so much happier using something more transparent - I love Octopi, but mostly the terminal is the sharpest toolbox in the arsenal.

At least, that’s what I believe.

Discover works well with SOME systems for those who prefer it, but for many other distributions it’s not going to work.

You don’t ‘need’ to, but it’s available.

For Arch bases, you should only ever use Discover for your fluff, your bloat, theming toys and the like, and then it can manage flatpaks well enough; otherwise never use it for package management.

That’s one way to do it, but you don’t really want to run commands in separate shells for this.

Unsandboxed Discover uses flatpak, PackageKit, libdnf etc libraries instead. Very standard dev practice.

(Disclaimer: my thoughts + didn’t look at the Discover code)

The nicer way to do it for sandboxed Discover would be by calling D-Bus I think. Then the question becomes whether the underlying tools support it and whether the effort is worth doing.

1 Like