Alternative to global keybinds for Wayland on Linux?
I didn't see this mentioned in current feedback articles about Wayland, so I guess I'll do it here to increase chances of developers noticing it.
Wayland does not support global keybinds. It's a security feature so you can't be keylogged without your permission. All global keybinds need to be handled by your compositor which is considered trusted in the Wayland ecosystem. As more and more DEs migrate to Wayland by default, Discord's global keybinds - notably, the push-to-talk key - stops working in them.
A reasonable alternative would be having, say, a very simple D-Bus API that could imitate the PTT button and maybe some other keybinds as required. Then in the compositor settings (e.g. the GNOME keybinds or Sway config) the user could configure their PTT key.
Probably if WAYLAND_DISPLAY= is detected there should be a short help message near the PTT keybind setting in Discord describing why it won't work and how to create a working keybind manually.
कृपया टिप्पणी करने के लिए साइन इन करें करें.
टिप्पणियां
0 टिप्पणियां