@Pointedstick
Copy link

Pointedstick commented May 22, 2019

$ appstreamcli search "coco" | wc -l
6
$ appstreamcli search "" | wc -l
9048
$ appstreamcli search "2+2" | wc -l
9048

KDE's KRunner has an AppStream runner that searches for apps matching the user's query, which may not even have anything to to with apps. Because of this bug, when there are no AppStream matches (e.g. because the search term is a mathematical expression), we get back all items it knows about instead of none, causing a performance bottleneck for other KRunner runners that has resulted in user bug reports. See https://bugs.kde.org/show_bug.cgi?id=406384.

Version:

$ appstreamcli --version
AppStream version: 0.12.6