https://bugs.kde.org/show_bug.cgi?id=422887

            Bug ID: 422887
           Summary: Global application shortcuts don't work and behave
                    strange
           Product: systemsettings
           Version: 5.19.0
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: kcm_khotkeys
          Assignee: k...@michael-jansen.biz
          Reporter: adamantga...@gmail.com
                CC: plasma-b...@kde.org
  Target Milestone: ---

Created attachment 129272
  --> https://bugs.kde.org/attachment.cgi?id=129272&action=edit
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.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to