Bug 475347

Summary: Discover does not find Okular when searching for pdf
Product: [Applications] Discover Reporter: Justin Zobel <justin.zobel>
Component: discoverAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: aleixpol, john.liptrot, justin, nate, tbertels
Priority: NOR Keywords: usability
Version First Reported In: 5.27.8   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Justin Zobel 2023-10-07 23:55:36 UTC
`appstreamcli search pdf` shows Okular.

However, searching for PDF in Discover does not show it.

It is in the appdata as shown https://invent.kde.org/graphics/okular/-/blob/master/shell/org.kde.okular.appdata.xml?ref_type=heads#L206

I believe it may be because it has several lines in the appdata and maybe Discover is only checking the first?
Comment 1 Nate Graham 2023-10-11 21:23:24 UTC
Can reproduce.
Comment 2 john.liptrot 2025-10-06 17:01:51 UTC
Duplicate? >>> https://bugs.kde.org/show_bug.cgi?id=499541
Comment 3 Justin Zobel 2025-10-07 00:57:45 UTC
Similar, but not exactly the same.

The term pdf is in the appstream data, for example Okular's
      <li>Supported Formats: PDF, PS, Tiff, DjVu, Images, DVI, XPS, Fiction Book, Comic Book, Plucker, EPub, Fax</li>
    <mediatype>application/pdf</mediatype>
    <mediatype>application/x-bzpdf</mediatype>
    <mediatype>application/x-gzpdf</mediatype>

The linked bug is about the name of the application.