Skycoder42 / QHotkey

A global shortcut/hotkey for Desktop Qt-Applications
BSD 3-Clause "New" or "Revised" License
552 stars 162 forks source link

Failed to register hotkey on Ubuntu #16

Closed pi-null-mezon closed 6 years ago

pi-null-mezon commented 6 years ago

Hello! When I am try to run library on ubuntu I have got:

$ sudo ./myapp
libEGL warning: DRI2: failed to authenticate
QHotkey: Failed to register hotkey. Error: BadAccess (attempt to access private resource denied)
...

and of cource hotkeys do not work after that. Maybe youalready have faced with that and can recommend what to do? Thanks! Great library by the way!

Skycoder42 commented 6 years ago

This error typically means that you are trying to register a key X11 does not allow you to register. What key combination are you trying to register?

pi-null-mezon commented 6 years ago

Thank a lot! You are right, it was Alt+P that not worked.