keybinder icon indicating copy to clipboard operation
keybinder copied to clipboard

Binding <key> failed

Open arun-mani-j opened this issue 6 years ago • 5 comments

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

arun-mani-j avatar Sep 10 '19 15:09 arun-mani-j

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.

OoDeLally avatar Aug 09 '22 09:08 OoDeLally

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 avatar Aug 09 '22 16:08 TingPing

@TingPing is it discussed anywhere in Wayland space, do you know?

I mean... Are wayland devs even aware there's a need for this?

ulidtko avatar Aug 09 '22 16:08 ulidtko

You can track it here: https://github.com/flatpak/xdg-desktop-portal/pull/711

TingPing avatar Aug 09 '22 16:08 TingPing

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

arun-mani-j avatar Aug 09 '22 16:08 arun-mani-j