Bug 435872

Summary: flatpaks not found consistently in search
Product: [Applications] Discover Reporter: Martin Tlustos <martin.tlustos>
Component: discoverAssignee: Dan Leinir Turthra Jensen <leinir>
Status: RESOLVED DOWNSTREAM    
Severity: minor CC: aleixpol, nate
Priority: NOR    
Version First Reported In: 5.21.4   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Martin Tlustos 2021-04-18 11:45:34 UTC
SUMMARY
When I do a search for programs, some flatpak apps are not found.

STEPS TO REPRODUCE
1. open discover
2. search for "DAW"
3. 

OBSERVED RESULT
neither Bigwig Studio nor Ardour are found, although both are in the enabled flathub repository. Nor are they listed when browsing to "Multimedia - Audio Editors"

EXPECTED RESULT
Both apps should show in a search and in the list

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.21
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.81.0
Qt Version: 5.15.2
Kernel Version: 5.4.0-72-generic
OS Type: 64-bit
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-7200U CPU @ 2.50GHz
Memory: 7.6 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 620

ADDITIONAL INFORMATION
This is just an example, there are lots of other flathub programs that do not show up neither in a search nor in the programs list.
Comment 1 Nate Graham 2021-04-21 18:48:16 UTC
I strongly suspect that each of these cases is going to be a problem of missing metadata in the app's own source repo rather than an issue in Discover. In the case of Ardour for example, we can see that "DAW" does not appear anywhere in either its appdata file nor its desktop file:

https://github.com/Ardour/ardour/blob/master/gtk2_ardour/ardour.appdata.xml.in.in

https://github.com/Ardour/ardour/blob/master/gtk2_ardour/ardour.desktop.in

So the app itself does not advertise "DAW" as a thing you can use to find it. Therefore, Discover can't know that it should be find when you search for DAW.
Comment 2 Aleix Pol 2021-04-23 00:49:29 UTC
In this case it's (also) a bug in flatpak's packaging:
https://github.com/flathub/org.ardour.Ardour/blob/master/org.ardour.Ardour.json#L559

They're renaming the file so flatpak never knows that it got renamed. :/

Did a PR. I guess you can pass it to other projects that you see doing similar things.
https://github.com/flathub/org.ardour.Ardour/pull/22
Comment 3 Nate Graham 2021-04-23 00:55:05 UTC
Thanks Aleix! <3 <3