Bug 473428 - "ab" gives "About this System" but "abo" to "about th" gives KDiskFree instead of "About this System"
Summary: "ab" gives "About this System" but "abo" to "about th" gives KDiskFree instea...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Launcher (Kickoff) widget (show other bugs)
Version: 5.27.7
Platform: Arch Linux Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-15 17:20 UTC by Yao Mitachi
Modified: 2023-08-17 18:35 UTC (History)
5 users (show)

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


Attachments
Screenshot of KDiskFree as the top result in Application Launcher for "about th" (62.05 KB, image/png)
2023-08-17 18:30 UTC, Yao Mitachi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yao Mitachi 2023-08-15 17:20:16 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Open the Application Launcher on the panel
2. Start typing "about this system"

OBSERVED RESULT
Between the third character and the eighth, KDiskFree is the top result, despite not having "about" or "th" in the title or the short description beneath. "About this System" is the second result.

EXPECTED RESULT
"About this System" should be the top result with "abo" and beyond. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
I assume "about" and "th" are being pulled from the "type" in org.kde.kdf.desktop: "Displays information about hard disks and other storage devices". However "about" and "th" are quite far apart in the text here, so "about th" shouldn't even get KDiskFree in the results, let alone at the top. Also, that "th" is in the middle of a word so it really should not be a factor.
Comment 1 Nate Graham 2023-08-17 18:24:02 UTC
Are you really using git master, or a released version of Plasma? I ask because both "ab" and "abo" give me "About this System" with git master.
Comment 2 Yao Mitachi 2023-08-17 18:30:29 UTC
Created attachment 161035 [details]
Screenshot of KDiskFree as the top result in Application Launcher for "about th"

I am using 5.27.7, and this is actually about the Application Launcher widget on the panel, not krunner. I've corrected this. Here's a screenshot.
Comment 3 Nate Graham 2023-08-17 18:35:40 UTC
Thanks. It's fixed already for Plasma 6 by changing the search result weightings and also by making Kickoff use the same ordering as KRunner.