Bug 492235 - Custom Global Shortcut doesn't work if letter is included in shortcut
Summary: Custom Global Shortcut doesn't work if letter is included in shortcut
Status: RESOLVED UPSTREAM
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_keys (other bugs)
Version First Reported In: 6.1.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-26 20:52 UTC by cprog
Modified: 2024-08-30 16:25 UTC (History)
3 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 cprog 2024-08-26 20:52:48 UTC
SUMMARY

When you set a keyboard shortcut in Custom Shortcuts that involves a letter, 
the keyboard shortcut doesn't work


STEPS TO REPRODUCE
1.   System Settings
2.   Shortcuts
3.   Add New Command
4.  Custom Shortcut - Alt + Shift + R
5   Command - xcowsay "hi"

OBSERVED RESULT
To see cow with text "hi"

EXPECTED RESULT


SOFTWARE/OS VERSION:

Operating System: Arch Linux 
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.6-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor
Memory: 125.7 GiB of RAM
Graphics Processor: AMD Radeon RX 6500 XT
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7D54
System Version: 1.0


ADDITIONAL INFORMATION
Comment 1 duha.bugs 2024-08-27 18:23:00 UTC
I am unable to reproduce this on Arch  KDE 6.1.4 with X11.

Can you check if you have something like:

[services][xcowsay.desktop]
_launch=Alt+Shift+R

in your ~/.config/kglobalshortcutsrc config file?
Comment 2 fanzhuyifan 2024-08-27 18:24:42 UTC
Did you set Alt+Shift for layout switching? What layout are you using?
Comment 3 cprog 2024-08-30 08:46:55 UTC
(In reply to duha.bugs from comment #1)
> I am unable to reproduce this on Arch  KDE 6.1.4 with X11.
> 
> Can you check if you have something like:
> 
> [services][xcowsay.desktop]
> _launch=Alt+Shift+R
> 
> in your ~/.config/kglobalshortcutsrc config file?

Yes, I do
Comment 4 cprog 2024-08-30 08:49:13 UTC
(In reply to fanzhuyifan from comment #2)
> Did you set Alt+Shift for layout switching? What layout are you using?

I'm using  Right Alt for layout switching
US Layout
Comment 5 fanzhuyifan 2024-08-30 16:25:24 UTC
(In reply to cprog from comment #4)
> (In reply to fanzhuyifan from comment #2)
> > Did you set Alt+Shift for layout switching? What layout are you using?
> 
> I'm using  Right Alt for layout switching
> US Layout

Unfortunately this seems to be a known upstream xkb issue that the layout switching shortcut interferes with ordinary shortcuts: https://gitlab.freedesktop.org/xorg/xserver/-/issues/258

If you use the alternate shortcut handled by plasma, the issue should be resolved (currently there are just some issues with alt+shift, all other shortcuts should work fine).