Bug 489673 - Launcher and KRunner select invalid options when hitting Enter quickly
Summary: Launcher and KRunner select invalid options when hitting Enter quickly
Status: RESOLVED DUPLICATE of bug 455239
Alias: None
Product: krunner
Classification: Plasma
Component: general (show other bugs)
Version: 6.1.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-03 12:10 UTC by Marty
Modified: 2025-03-04 01:01 UTC (History)
5 users (show)

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


Attachments
screenshot taken in the split second before resutls are updated (39.83 KB, image/png)
2024-07-03 12:10 UTC, Marty
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marty 2024-07-03 12:10:47 UTC
Created attachment 171329 [details]
screenshot taken in the split second before resutls are updated

SUMMARY

Hi!

This bug affects both Krunner and the Launcher, and I have observed this in both Plasma 5 and 6.

If I open my launcher menu (hitting Meta) and then type "fire", eventually firefox is the top option, since that is the last app I used that starts with fire. So far so good.

If I type "fire" and then hit enter immediately, sometimes the search is not done yet. After typing F and I, "Files" comes into view. Even after I type the R and E, which should invalidate the "Files" search result. But instead, Files is opened, even though my search query "fire" cannot possibly have this result.

An even better example for this is discord and discover.

STEPS TO REPRODUCE
1. Have discord and discover installed (or any other apps that start with the same letter(s))
2. Open Launcher or Krunner
3. quickly type discord or discover and hit enter immediately

OBSERVED RESULT

depending on what result comes first, either of the two may result in the wrong app being opened.

EXPECTED RESULT

Search should be deterministic - meaning that no matter how long I wait, the same result should be the top result.

There are rules for ordering depending on which app was most recently used (I think) and that is fine - but at the very least, an impossible search result should never ever be opened.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Tried in Fedora 39 and Bazzite 3.5
(available in About System)
KDE Plasma Version: tried in 5.27 and 6.1
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Marty 2024-07-03 12:13:18 UTC
The community has been helpful and recommended me to tweak the settings in the launcher to make search faster - while this may or may not solve my problem, IMO it is still distinctly a bug if I can launch a program that doesn't match my search query.
Comment 2 Oliver Beard 2025-03-04 01:01:50 UTC
*** This bug has been marked as a duplicate of bug 455239 ***