Bug 416649

Summary: kde discover no application backends found please report your distribution. OS FreeBSD 12.1-RELEASE-p1
Product: [Applications] Discover Reporter: Rai Mohammed <mohammed_rai>
Component: discoverAssignee: Dan Leinir Turthra Jensen <leinir>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: aleixpol, groot, nate
Priority: NOR    
Version First Reported In: 5.17.4   
Target Milestone: ---   
Platform: Other   
OS: FreeBSD   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Rai Mohammed 2020-01-23 14:20:52 UTC
SUMMARY
kde discover no application backends found please report your distribution. OS FreeBSD 12.1-RELEASE-p1

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
FreeBSD 12.1-RELEASE-p1
KDE Plasma Version: 5.17.4
KDE Frameworks Version: 5.65.0
Qt Version: 5.13.2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2020-01-23 19:36:13 UTC
KDE isn't your distribution; FreeBSD is. :)

This means that FreeBSD doesn't set up Discover to include the ability to install apps by default. Please report this to them.
Comment 2 groot 2020-01-23 23:25:15 UTC
To follow-up on what Nate writes: FreeBSD is your distribution, so please report at https://bugs.freebsd.org. The PR can then be dealt with by the KDE-FreeBSD team (which includes me, but with a different hat on).

That said, the Summary provided is not very useful: if I start Discover, e.g.

 - alt-space in a KDE Plasma session, with ports `x11/kde5` installed
 - type *discover* and pick applications, *Discover* (software centre)
 - the message **I** get is *Unable to load applications. Please verify Internet connectivity.*

(My point here is: be specific about what you're doing and exactly what you see. The error message you post **is** in the source code, although I can't get it for other reasons.)

I **think** Discover uses packagekit. Or maybe it used to. Whatever it uses, it doesn't know about pkg(8) which would be the natural way to deliver packages on FreeBSD, so this isn't going to work anyway. We need someone who cares about integration, and with time to look at it, to investigate what kind of backend could be built.
Comment 3 Nate Graham 2020-01-23 23:42:48 UTC
Yeah, Discover uses PackageKit, which is an abstraction layer above all the distro-specific packaging tools. PackageKit itself included many plugins allowing interaction with distro-specific packaging tools; you can see them here: https://github.com/hughsie/PackageKit/tree/master/backends

The error message that Rai saw means that the package for the Discover PackageKit backend was not installed, which would make sense if that package is not installed by default or does not even exist because there is no PackageKit plugin that works with FreeBSD's native packaging tools.

If no such plugin exists, someone would first need to write one and submit it to https://github.com/hughsie/PackageKit. This would then allow PackageKit to work on FreeBSD, which would allow the Discover PackageKit backend to be packaged and installed by default with Discover.
Comment 4 Aleix Pol 2020-01-26 23:24:40 UTC
Or get snap or flatpak installed, or develop a freebsd Discover backend.

It all has its ups and downs.