Bug 461444 - Discover not showing some apps in Fedora when searching through the list or the search bar
Summary: Discover not showing some apps in Fedora when searching through the list or t...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: Discover
Classification: Applications
Component: PackageKit (show other bugs)
Version: 5.25.5
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-05 02:23 UTC by francaco
Modified: 2022-11-24 13:45 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Grass-Gis doesn't appear (106.97 KB, image/png)
2022-11-05 02:23 UTC, francaco
Details
Krita repo version doesn't appear even though I have it installed (67.48 KB, image/png)
2022-11-05 02:25 UTC, francaco
Details

Note You need to log in before you can comment on or make changes to this bug.
Description francaco 2022-11-05 02:23:48 UTC
Created attachment 153484 [details]
Grass-Gis doesn't appear

SUMMARY

When using Discover to search for (GUI) apps in a fresh install of Fedora, some apps like GRASS-GIS, SAGA-GIS or Krita don't appear, but their flatpak version (in the case of Krita) does show. This issue persists even when installing those apps from the terminal, having installed and reinstalled plasma-discover-rpm-ostree, appstream-data, rpmfusion-free-appstream-data and rpmfusion-nonfree-appstream-data.

I mentioned this issue in the spanish KDE Telegram group and at least one other person confirmed this:
my original message --> https://t.me/kde_canasbravas/165371
another user confirms this issue --> https://t.me/kde_canasbravas/165512

STEPS TO REPRODUCE
1. Install Fedora KDE Spin
2. Open Discover
3. Search for Grass GIS (or just Grass). Alternatively go to Science & Engineering > Geography

OBSERVED RESULT

4. The program doesn't appear (it should, I have seen it there in other distros, and it's a GUI app)

EXPECTED RESULT

The program should appear in the search or in its corresponding section, and it should be possible to install or remove it.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Fedora Linux 36 KDE Spin
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6

ADDITIONAL INFORMATION

The relevant repos are all active in Discover settings
Comment 1 francaco 2022-11-05 02:25:29 UTC
Created attachment 153485 [details]
Krita repo version doesn't appear even though I have it installed
Comment 2 Nate Graham 2022-11-05 22:36:26 UTC
The problem appears to be that this app in question lacks AppStream metadata, as `appstreamcli search` has no results for it:

$ appstreamcli search grass
Identifier: com.github.emmanueltouzery.cigale [desktop-application]
Name: Cigale
Summary: Review your past activity
Bundle: flatpak:app/com.github.emmanueltouzery.cigale/x86_64/stable
Homepage: https://github.com/emmanueltouzery/cigale/
Icon: com.github.emmanueltouzery.cigale.png

If the app isn't known to AppStream, Discover won't find it, either. This is by design, because Discover is an "app store", not a package manager. So it only shows you things that register themselves as user-facing apps by defining AppStream metadata.

So if this app is lacking AppStream metadata--which seems to be the case--that's an issue in the app itself, which needs to set this metadata so that apps liker Discover and GNOME Software can find it. You should report this to the app's developers. Thanks!
Comment 3 francaco 2022-11-24 00:15:48 UTC
Thank you for your feedback! but please give this another chance. I used appstreamcli and searched for both grass and krita, and both showed results for appstream data (Krita for repo and flatpak), but they both still don't show in Discover.

$ appstreamcli search grass
Identificador: org.osgeo.grass.desktop [desktop-application]
Nombre: GRASS GIS
Resumen: GRASS GIS, the Open Source Geographic Information System
Sitio web: https://grass.osgeo.org/
---

$ appstreamcli search krita
Identificador: org.kde.krita [desktop-application]
Nombre: Krita
Resumen: Pintura digital, libertad creativa
Agrupación: flatpak:app/org.kde.krita/x86_64/stable
Sitio web: https://www.krita.org/
Icono: org.kde.krita.png
---
Identificador: org.kde.krita [desktop-application]
Nombre: Krita
Resumen: Pintura digital, libertad creativa
Sitio web: https://www.krita.org/
Icono: krita
---
Comment 4 Aleix Pol 2022-11-24 00:42:44 UTC
Can you run "appstreamcli get --details org.osgeo.grass.desktop" and see which Categories it gives?
Comment 5 francaco 2022-11-24 01:20:27 UTC
Yes, it gives:

Identificador: org.osgeo.grass.desktop [desktop-application]
ID interno: system/package/os/org.osgeo.grass.desktop/*
Nombre: GRASS GIS
Resumen: GRASS GIS, the Open Source Geographic Information System
Sitio web: https://grass.osgeo.org/
Programador: GRASS Development Team
Descripción: 
  The Geographic Resources... (and the rest of the description)
URL predeterminado de captura de pantalla: https://grass.osgeo.org//images/gallery/gui/wxgui_histogram.png
Licencia: GPL-2.0+
Comment 6 francaco 2022-11-24 01:23:18 UTC
Sorry, I searched for Krita and it shows different Categories, and I realized that's what you were asking for. For grass, it didn't show any categories, just what I posted before.
Comment 7 Aleix Pol 2022-11-24 13:45:07 UTC
Alright, then your problem is grass not specifying categories. How is Discover supposed to list GRASS under Geography if it doesn't know it's fitting?

I tried looking up the xml file in their repository but I could not find it :(