Bug 422887 - Global application shortcuts don't work and behave strange
Summary: Global application shortcuts don't work and behave strange
Status: RESOLVED DUPLICATE of bug 421329
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_khotkeys (show other bugs)
Version: 5.19.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Michael Jansen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-12 18:16 UTC by Oleksandr Popel
Modified: 2020-06-12 21:49 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
The only available shortcut action (39.59 KB, image/png)
2020-06-12 18:16 UTC, Oleksandr Popel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oleksandr Popel 2020-06-12 18:16:09 UTC
Created attachment 129272 [details]
The only available shortcut action

SUMMARY

In a freshly installed Plasma 5.19 (Arch Linux) global shortcuts' "Applications" section behaves strange.
Pre-defined shortcuts work fine and as expected (e.g. Dolphin). And those, set by the applications themselves work too (like Yakuake). You can change the shortcuts and they still will work. However, if you try to add new application shortcut two things happen:

1. There are no desktop actions listed, only internal _launch action (see attachment).

2. When you assign a _launch shortcut, it simply doesn't work.

The behavior is the same on the live KDE Neon system (neon-user-20200609-1220.iso).

If you, however, use the "Custom shortcuts" menu - everything works fine. You can even assign shortcuts to applications, not commands, via "KMenuEdit Global Shortcuts" group. Still, this workaround doesn't allow you to use desktop actions like "Open a Private Window" in Firefox.

The created entries in kglobalshortcutsrc file also look strange. For example:

[firefox.desktop]
_k_friendly_name=Firefox
_launch=Meta+F,,

I'm not familiar with the format, but the _launch action doesn't look like the predefined ones (e.g. _launch=Meta+E,Meta+E,Dolphin). If you manually change the Firefox's _launch action to look like Dolphin's - it still doesn't work. Maybe you have to restart something but anyway - it gets reset when you launch System Settings.

STEPS TO REPRODUCE
1. Open System Settings
2. Navigate to the Global Shortcuts menu
3. Create a new Application shortcut
4. Assign a keyboard shortcut to it
5. Press the keyboard shortcut

OBSERVED RESULT
Nothing happens. If the shortcut contains a printable symbol (e.g. Meta+F) and a text field is in focus - character gets printed into text field.

EXPECTED RESULT
Application launches.


SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Arch Linux

KDE Plasma Version: 5.19
KDE Frameworks Version: 5.70
Qt Version: 5.15

ADDITIONAL INFORMATION

What's interesting is that my friend, who upgraded his Plasma from 5.18 (also on Arch Linux) doesn't have this problem. Even for newly added shortcuts. When i copied his kglobalshortcutsrc, the desktop actions were visible, but still didn't work. So, nothing's changed for me.

I don't use that many application shortcuts so i just created them in "Custom Shortcuts", but still, it's inconvenient compared to setting shortcuts to applications and their desktop actions in "Global Shortctus" menu.
Comment 1 Patrick Silva 2020-06-12 21:49:38 UTC

*** This bug has been marked as a duplicate of bug 421329 ***