Bug 368901 - Pressing ALT+f2 and entering exact executable name and pressing enter can run another program
Summary: Pressing ALT+f2 and entering exact executable name and pressing enter can run...
Status: REPORTED
Alias: None
Product: krunner
Classification: Plasma
Component: general (show other bugs)
Version: 5.7.5
Platform: Fedora RPMs Linux
: NOR major
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-16 14:00 UTC by Jonas Thiem
Modified: 2020-11-22 03:52 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Thiem 2016-09-16 14:00:59 UTC
Pressing ALT+f2 and entering exact executable name and pressing enter does sometimes run another program for me as default choice, I assume that program has that name assigned in the .desktop file but it's definitely not as a binary in the $PATH with that exact name (it's a wine program with .exe file extension).

Reproducible: Always

Steps to Reproduce:
1. Install a program that has the name of an executable in $PATH in the .desktop file which matches an existing binary, or a wine program

Actual Results:  
Program with not the exact executable name gets sometimes picked as default choice when entering the name in ALT+f2

Expected Results:  
Entering an exact executable name in ALT+f2 and pressing enter must always run that program with that exact executalbe name as a default choice.
Comment 1 Jonas Thiem 2016-09-16 14:06:57 UTC
Basically to give this some more context, I installed steam in wine and steam natively which has the exact name "steam" as system-wide binary. When I do ALT+f2, "steam", ENTER, I always expect the native one to launch since that is the exact name of the binary - however, right now that will launch the wine one.

I think ranking stuff in order of use and other heuristics are very useful, but if I enter an exact existing binary name I highly expect that one to run always, no matter what sort of other interesting search results there might be...
Comment 2 Alexander Lohnau 2020-07-11 15:57:06 UTC
BUG 340283 seems related to this.

And is this still reproducible on a later Plasma version? (I don't have steam installed on my system).
Comment 3 Justin Zobel 2020-11-22 03:52:14 UTC
I have steam installed via flatpak (linux steam) and via lutris (windows steam) and they both show up as steam because the .desktop file specifies that.

This is an issue purely with installing the same software through multiple sources.

The logic behind which one it picks isn't known to me but I don't imagine there's too much in it, just whichever .desktop application is found first.