In KDE Menu Editor, I wanted to assign the Calculator key on my keyboard to launch Calculator. Problem is, I don't see `Calculator` in the KDE Menu Editor, and it's not straightforward to figure out the `plasmawindowed org.kde.plasma.calculator` command line invocation.
`plasmawindowed org.kde.plasma.calculator` That launches the Calculator plasma widget as an app. The standalone app is called "KCalc". Perhaps it is not installed? When it is installed, it should show up normally.
Created attachment 136213 [details] A launcher search for "calculator" shows this KCalc was not installed with KDE neon 5.21.0. Since that "Calculator" (2nd result) does appear in Launcher searches, shouldn't it be organized somewhere in the KDE Menu Editor?
What gets launched when you open that second entry? KCalc?
Created attachment 136308 [details] What opens for 'Calculator' No, KCalc is not installed. The running application is `org.kde.plasmawindowed`.
I see. This is quite odd indeed. Doing some digging, it appears to be caused by the calculator applet in kdeplasma-addons having "X-Plasma-StandAloneApp=true" set in its desktop file. This causes it to show up as an app. This is probably more confusing than helpful, given that KDE already has a standalone app for this. I'll fix it.
Hmm, upon preparing a patch, now I'm not so sure anymore. There's a whole infrastructure for this, and the search results come from the "Windowed Widgets" KRunner runner. I suspect what happened is that this previously somewhat hidden feature has become more obvious because we made Kickoff use the same set of runners as KRunner itself. As a result, when you search for "calc" or "calculator" in Kickoff, you get the standalone app version of the calculator app displayed in the search results, but its status as a widget is not obvious. We have a couple of options: 1. Delete the "Windowed Widgets" runner entirely because it's kind of a weird feature. If we do this, we'll find all the people who liked the feature and were using it. :) 2. Disable the "Window Widgets runner by default, so it's still there if people want it, but it's not confusing people and cluttering up their search results by default. However disabled-by-default features bit-rot and generally should just be deleted. 3. Go back to having Kickoff use its own list of runners rather than always using KRunner's list. However this only solves the problem for Kickoff; it remains there for KRunner. 4. Improve the presentation so that the search results make it more clear that it's found a plasma widget, and not a standalone app. 5. Add category headers to Kickoff indicating which runner each match is from. Not really feasible given the current UI and the fact that results are not sorted in order of runner in Kickoff as they are in KRunner. This is fixable in KF6, but we can't do it yet. Option 4 seems like the path of least resistance, so let's give that a shot and see if it's enough.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/685
FWIW, I found `xcalc` also already present in my KDE neon install. I know it's not a KDE utility, but it does have a graphical interface.