Bug 426295 - KRunner does not open on pressing global keyboard shortcut
Summary: KRunner does not open on pressing global keyboard shortcut
Status: REPORTED
Alias: None
Product: krunner
Classification: Plasma
Component: general (show other bugs)
Version: 5.18.5
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2020-09-07 22:33 UTC by Alexander Potashev
Modified: 2020-10-20 13:57 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Potashev 2020-09-07 22:33:39 UTC
SUMMARY
KRunner does not open on pressing global keyboard shortcut.

STEPS TO REPRODUCE
1. Start a Plasma Wayland session
2. Run krunner on command line. e.g. in Konsole. I do this to make sure krunner doesn't crash.
3. Press Alt+F2 or Alt+Space

OBSERVED RESULT
Nothing happens. Konsole handles the pressed key combination, this indicates that the global shortcut hadn't been recognized.

EXPECTED RESULT
KRunner should open its search/run input line.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Fedora 32
(available in About System)
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.14.2

ADDITIONAL INFORMATION
Comment 1 Alexander Lohnau 2020-09-08 08:52:08 UTC
Can you please try if https://bugs.kde.org/show_bug.cgi?id=424266#c2 works for you?
Comment 2 Alexander Potashev 2020-09-10 22:50:45 UTC
(In reply to Alexander Lohnau from comment #1)
> Can you please try if https://bugs.kde.org/show_bug.cgi?id=424266#c2 works
> for you?

There's no "kglobalaccel5" process running in a Plasma Wayland session. If I try to run if from command line (Yakuake), I get this error messages:

"Couldn't register name 'org.kde.kglobalaccel' with DBUS - another process owns it already!"
Comment 3 Alexander Potashev 2020-09-10 22:52:01 UTC
Another update: I have the same problem in Plasma X11 as well. Other global shortcuts do work (e.g. F12 successfully opens Yakuake - both on X11 and Wayland), however Alt+F2 and Alt+Space do nothing.
Comment 4 Alexander Potashev 2020-09-10 22:53:45 UTC
Restarting kglobalaccel5 when on X11 doesn't help mitigate the problem.
Comment 5 Nate Graham 2020-09-14 23:57:36 UTC
So is kglobalaccel running or not? If it's not running, then this would be expected, and the problem is why it's not running. :)
Comment 6 Alexander Potashev 2020-09-23 21:46:12 UTC
(In reply to Nate Graham from comment #5)
> So is kglobalaccel running or not? If it's not running, then this would be
> expected, and the problem is why it's not running. :)

Yes and no. Depends on whether Xorg or Wayland is used. Let's only consider the case when kglobalaccel5 is running, for now.
----

When using Plasma on Xorg, the problem described in this report is
 - Still reproducible while kglobalaccel5 is running, on Fedora 32 and Plasma 5.18.5.
 - Not reproducible on Archlinux and Plasma 5.19.90.
Comment 7 Christoph Feck 2020-10-06 03:47:39 UTC
Requested information was added with comment 6; changing status for inspection.
Comment 8 Patrick Silva 2020-10-20 12:10:39 UTC
I noticed this bug a few days ago on Arch Linux running Plasma 5.20.
Comment 9 Alexander Lohnau 2020-10-20 12:16:22 UTC
Can you please check if the KRunner is running after the shortcut was pressed? And does it work when krunner is manually started on the terminal?

I fear it might be related to the systemd startup.

@Partick: Could you also please try out if it works when mapping KRunner to the meta key? This way we don't use kglobalaccel5 and just kwin(https://wiki.archlinux.org/index.php/KRunner).
Comment 10 Nate Graham 2020-10-20 13:41:22 UTC
Systemd startup is not in 5.20 and is off by default in git master FWIW.
Comment 11 Patrick Silva 2020-10-20 13:57:20 UTC
(In reply to Alexander Lohnau from comment #9)
> @Partick: Could you also please try out if it works when mapping KRunner to
> the meta key? This way we don't use kglobalaccel5 and just
> kwin(https://wiki.archlinux.org/index.php/KRunner).

I can't reproduce this bug consistently, currently both alt+space and alt+F2 shortcuts are working on my Wayland session. I will try your instruction if the bug to occur again.