Bug 153325 - command search results should give KDE tools greater weighting
Summary: command search results should give KDE tools greater weighting
Status: RESOLVED FIXED
Alias: None
Product: krunner
Classification: Plasma
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Aaron J. Seigo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-03 08:31 UTC by Will Stephenson
Modified: 2025-07-19 12:22 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Will Stephenson 2007-12-03 08:31:45 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

The order of the krunner command search results is suboptimal.

As an example, on openSUSE we have a YaST 'System Settings' module in /usr/share/applications/YaST2/system_settings.desktop which gets picked up by krunner, and returned first before KDE4's System Settings tool.

My suggestion would be to use something like the .desktop Weight field used by KPageDialog when ordering search results.  Since we can't influence the weight of arbitrary .desktop files in XDG_DATA_DIRS we can give important KDE infrastructure a greater weight than the default.  

Stephan Binner did a lot of tweaking in the original Kickoff in this area.
Comment 1 Will Stephenson 2007-12-03 08:33:42 UTC
Stephan: how did you solve search result order for Kickoff?
Comment 2 Aaron J. Seigo 2008-02-18 00:28:39 UTC
this precise example works here now. the applications runner is a lot smarter on how it orders things. if you can find additional specific searches that don't order properly, please let me know (panel-devel@kde.org is a good place, too)
Comment 3 Aaron J. Seigo 2008-02-19 11:00:38 UTC
hm.. i can reproduce this if i craft the search term properly ... will have to consider some more trickery to fix this fully.
Comment 4 Aaron J. Seigo 2008-02-19 11:08:13 UTC
SVN commit 777003 by aseigo:

give items with a KDE category a small bump. i feel dirty. ;)
BUG:153325


 M  +8 -4      servicerunner.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=777003