Bug 510019

Summary: Discover search cannot find "0 A.D." game using the more human-friendly search term "0ad"
Product: [Applications] Discover Reporter: Massimiliano L <m.lincetto>
Component: discoverAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: akselmo, aleixpol, nate
Priority: NOR    
Version First Reported In: 6.4.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Massimiliano L 2025-09-28 09:19:23 UTC
SUMMARY
Certain packages in Discover cannot be found by their title. For example, if I search for "0ad" Discover shows the app with title "0 A.D." but searching for "0 A.D." will return an empty result.

STEPS TO REPRODUCE
1. Use Discover with Flathub configured as a package source
2. Search for "0 A.D." (without quotes)

OBSERVED RESULT
The "0 A.D." app does not appear.

EXPECTED RESULT
The "0 A.D." app does appear. However the app appears when searching for "0ad".

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2
Kernel Version: 6.16.8-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600 6-Core Processor
Memory: 32 GiB of RAM (31.3 GiB usable)
Graphics Processor: AMD Radeon RX 6600
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7B89
System Version: 2.0
Comment 1 Akseli Lahtinen 2025-09-29 08:38:52 UTC
Can confirm 

Operating System: Fedora Linux 42
KDE Plasma Version: 6.5.80
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.2
Kernel Version: 6.16.8-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 16 GiB of RAM (15.5 GiB usable)
Graphics Processor: AMD Radeon RX 6600
Comment 2 Nate Graham 2025-09-29 20:21:27 UTC
This works for me on KDE Linux. Both Discover and `appstreamcli` find it:

appstreamcli search 0ad
Identifier: 0ad.desktop [desktop-application]
Name: 0 A.D.
Summary: A real-time strategy game of ancient warfare
Package: 0ad
Icon: 0ad_0ad.png
---
Identifier: com.play0ad.zeroad [desktop-application]
Name: 0 A.D.
Summary: Real-time strategy game
Bundle: flatpak:app/com.play0ad.zeroad/x86_64/stable
Homepage: https://play0ad.com/
Icon: com.play0ad.zeroad.png

I'm guessing that for both of you, `appstreamcli search 0ad` doesn't find it, right?
Comment 3 Nate Graham 2025-09-29 20:22:56 UTC
It looks like the 0 A.D. issue was a bug in AppStream itself: https://github.com/ximion/appstream/issues/702. I have version 1.1.0, and I bet you two have an older version.