Bug 433644 - Calculator not present among Utilities
Summary: Calculator not present among Utilities
Status: ASSIGNED
Alias: None
Product: krunner
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.21.1
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Lohnau
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-26 08:59 UTC by Dan Dascalescu
Modified: 2021-03-02 22:20 UTC (History)
2 users (show)

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


Attachments
A launcher search for "calculator" shows this (184.77 KB, image/png)
2021-02-27 09:16 UTC, Dan Dascalescu
Details
What opens for 'Calculator' (71.47 KB, image/png)
2021-03-02 06:35 UTC, Dan Dascalescu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Dascalescu 2021-02-26 08:59:48 UTC
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.
Comment 1 Nate Graham 2021-02-26 16:22:01 UTC
`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.
Comment 2 Dan Dascalescu 2021-02-27 09:16:39 UTC
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?
Comment 3 Nate Graham 2021-03-02 00:06:46 UTC
What gets launched when you open that second entry? KCalc?
Comment 4 Dan Dascalescu 2021-03-02 06:35:44 UTC
Created attachment 136308 [details]
What opens for 'Calculator'

No, KCalc is not installed. The running application is `org.kde.plasmawindowed`.
Comment 5 Nate Graham 2021-03-02 21:00:29 UTC
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.
Comment 6 Nate Graham 2021-03-02 21:23:36 UTC
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.
Comment 7 Bug Janitor Service 2021-03-02 21:36:20 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/685
Comment 8 Dan Dascalescu 2021-03-02 22:20:05 UTC
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.