This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Global keyboard shortcuts do not start applications

Tags: global shortcuts, hotkeys global shortcuts, hotkeys global shortcuts, hotkeys
(comma "," separated)
kay_D
Registered Member
Posts
2
Karma
0
My system is Kubuntu 20.04.

I have a solid and stable system with working shortcuts in general (e.g. I use self defined keyboard shortcuts to switch virtual desktops). Also starting e.g. dolphin via global shortcut is working:
  • Meta-E --> dolphin starts
I can redefine the shortcut to some other key, e.g. Ctrl-Y
  • Ctrl-Y --> dolphin starts
However, I installed gimp (but the behaviour I describe is also valid for other programs I installed, e.g. thunderbird, blender, etc.) and assign a global shortcut e.g. Ctrl-Y to gimp (resetting dolphin to Meta-E first of course):
  • Ctrl-Y --> gimp does not start (no visible indication of if KDE tries to start it)
Assigning Meta-E to gimp:
  • Meta-E --> same: gimp does not start.

[bug]It seems like some pre-installed applications are handled correctly, but new applications are not.[/bug]

I also tried the following to debug:

Unassinging Ctrl-Y:

Code: Select all
{15:35}~ ➭ xev -event keyboard                   
Outer window is 0x5600001, inner window is 0x5600002

[...]

KeyPress event, serial 28, synthetic NO, window 0x5600001,
    root 0x1da, subw 0x0, time 125243709, (780,1006), root:(780,1083),
    state 0x10, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyPress event, serial 28, synthetic NO, window 0x5600001,
    root 0x1da, subw 0x0, time 125243949, (780,1006), root:(780,1083),
    state 0x14, keycode 52 (keysym 0x79, y), same_screen YES,
    XLookupString gives 1 bytes: (19) ""
    XmbLookupString gives 1 bytes: (19) ""
    XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x5600001,
    root 0x1da, subw 0x0, time 125244141, (780,1006), root:(780,1083),
    state 0x14, keycode 52 (keysym 0x79, y), same_screen YES,
    XLookupString gives 1 bytes: (19) ""
    XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x5600001,
    root 0x1da, subw 0x0, time 125244253, (780,1006), root:(780,1083),
    state 0x14, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False


Assinging Ctrl-Y to gimp:
Code: Select all
{23:10}~ ➭ xev -event keyboard
Outer window is 0x5600001, inner window is 0x5600002

[...]

KeyPress event, serial 28, synthetic NO, window 0x5600001,
    root 0x1da, subw 0x0, time 126043433, (775,944), root:(775,1021),
    state 0x10, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeymapNotify event, serial 28, synthetic NO, window 0x0,
    keys:  4294967258 0   0   0   32  0   16  0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

KeyRelease event, serial 28, synthetic NO, window 0x5600001,
    root 0x1da, subw 0x0, time 126043785, (775,944), root:(775,1021),
    state 0x14, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x5600001,
    root 0x1da, subw 0x0, time 126043785, (775,944), root:(775,1021),
    state 0x10, keycode 52 (keysym 0x79, y), same_screen YES,
    XLookupString gives 1 bytes: (79) "y"
    XFilterEvent returns: False


All the applications of course start perfectly using the K-Menu (or shell). Is there any log that I could check?
kay_D
Registered Member
Posts
2
Karma
0
In case anyone finds this post, there seems to be a related bug: https://bugs.kde.org/show_bug.cgi?id=417495.
Until there is a bugfix, the following temporary solution worked for me: https://bugs.kde.org/show_bug.cgi?id=421329#c8


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora