Binding <key> failed
Hi there. I made my app which uses this package and it worked fine in Cinnamon. But I recently shifted to GNOME 3 and whatever key I try to bind, it simply tells me "Binding <my key> failed". I thought that this issue was with my app and so used the example provided by this repository and it also gives me the same error. Using : Python 3 Keybinder : 3.0 OS : Debian Buster
- It works fine if I use GNOME Classic and Cinnamon instead of GNOME 3
Same problem here https://github.com/yktoo/indicator-sound-switcher/issues/125
Ubuntu Xorg & Cinnamon => Works Ubuntu Wayland => Doesnt work
edit: it works on Wayland if the app is launched with env GDK_BACKEND=X11 ./myapp. @arun-mani-j you may try this.
This library is forever tied to X11.
There is no generic Wayland solution for global keybindings yet. But I would expect it to happen eventually.
@TingPing is it discussed anywhere in Wayland space, do you know?
I mean... Are wayland devs even aware there's a need for this?
You can track it here: https://github.com/flatpak/xdg-desktop-portal/pull/711
Same problem here yktoo/indicator-sound-switcher#125
Ubuntu Xorg & Cinnamon => Works Ubuntu Wayland => Doesnt work
edit: it works on Wayland if the app is launched with
env GDK_BACKEND=X11 ./myapp. @arun-mani-j you may try this.
Thanks :)
A short flashback 😴
I actually opened the issue when I was working on my school project of a launcher app. After asking in GNOME Discourse, I learnt about Wayland and X11 for the first time (I started using GNU/Linux that year only approximately).
Though one quick solution (temporary fix till the XDG standards launches) I found is to ask users to create a custom shortcut via their Desktop Environment itself. For GNOME - https://help.gnome.org/users/gnome-help/stable/keyboard-shortcuts-set.html.en