Bug 413070 - ModifierOnlyShortcuts not working in Plasma 5.17
Summary: ModifierOnlyShortcuts not working in Plasma 5.17
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.17.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-17 07:37 UTC by elman
Modified: 2019-10-21 11:46 UTC (History)
3 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 elman 2019-10-17 07:37:22 UTC
SUMMARY
ModifierOnlyShortcuts configured in kwinrc do not work in Plasma 5.17, but worked in Plasma 5.16

STEPS TO REPRODUCE
1. Edit kwinrc with

[ModifierOnlyShortcuts]
Meta=org.kde.kglobalaccel,/component/krunner,,invokeShortcut,run command

2. Restart Plasma or reconfigure KWin

OBSERVED RESULT
Nothing happens after pressing Meta key

EXPECTED RESULT
Krunner should be displayed

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Neon 5.17
(available in About System)
KDE Plasma Version: 5.17.0
KDE Frameworks Version: 5.63.0
Qt Version: 5.13.1

ADDITIONAL INFORMATION
Comment 1 navtojchahal 2019-10-20 19:30:45 UTC
BEFORE 5.17 UPDATE:

1. Running "qdbus org.kde.kglobalaccel" outputs "/component/krunner".

2. Running "qdbus org.kde.kglobalaccel /component/krunner org.kde.kglobalaccel.Component.invokeShortcut "run command"" opens KRunner.

AFTER 5.17 UPDATE:

1. Running "qdbus org.kde.kglobalaccel" outputs "/component/krunner_desktop".

2. Running "qdbus org.kde.kglobalaccel /component/krunner_desktop org.kde.kglobalaccel.Component.invokeShortcut "run command"" does NOT open KRunner.
Comment 2 David Edmundson 2019-10-21 09:08:45 UTC
org.kde.kglobalaccel,/component/krunner_desktop,org.kde.kglobalaccel.Component.invokeShortcut,_launch

or more directly

org.kde.krunner /App org.kde.krunner.App.display

In any case, there was never a UI to configure this option so it is not a kwin bug.
Comment 3 elman 2019-10-21 11:09:56 UTC
I tried both of them before. They work from command line but don't work when configured as ModifierOnlyShortcut.

I tried

kwriteconfig5 --file ~/.config/kwinrc --group ModifierOnlyShortcuts --key Meta "org.kde.kglobalaccel,/component/krunner_desktop,org.kde.kglobalaccel.Component.invokeShortcut,_launch"

kwriteconfig5 --file ~/.config/kwinrc --group ModifierOnlyShortcuts --key Meta "org.kde.krunner,/App,,org.kde.krunner.App.display"

If this is not a bug of kwin, which component can I report it under?
Comment 4 elman 2019-10-21 11:12:04 UTC
BTW I prefer kglobalaccel version because pressing Meta once opens krunner and pressing Meta second time closes krunner. The other version always opens krunner and you have to use Esc to close krunner.
Comment 5 elman 2019-10-21 11:28:38 UTC
And one more thing. Remapping Meta key to Launcher menu works, so I guess it is an issue with krunner.
Comment 6 elman 2019-10-21 11:46:30 UTC
And another one more thing :)

I managed to get it working with this config

kwriteconfig5 --file ~/.config/kwinrc --group ModifierOnlyShortcuts --key Meta "org.kde.kglobalaccel,/component/krunner_desktop,,invokeShortcut,_launch"