Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binding <key> failed #17

Open
arun-mani-j opened this issue Sep 10, 2019 · 5 comments
Open

Binding <key> failed #17

arun-mani-j opened this issue Sep 10, 2019 · 5 comments

Comments

@arun-mani-j
Copy link

arun-mani-j commented Sep 10, 2019

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
@OoDeLally
Copy link

OoDeLally commented Aug 9, 2022

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.

@TingPing
Copy link

TingPing commented Aug 9, 2022

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.

@ulidtko
Copy link

ulidtko commented Aug 9, 2022

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

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

@TingPing
Copy link

TingPing commented Aug 9, 2022

You can track it here: flatpak/xdg-desktop-portal#711

@arun-mani-j
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants