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 to media keys on GNOME-based systems (Fedora, Ubuntu, etc) is flaky #35

Open
aknobloch opened this issue May 17, 2020 · 3 comments

Comments

@aknobloch
Copy link
Contributor

aknobloch commented May 17, 2020

Spent the better part of an afternoon debugging this one! Binding to media keys on GNOME-based systems (Fedora, Ubuntu, etc) is flaky - either the bindings will fail completely, or they will seemingly randomly and intermittently stop working, instead greeting the user with this pop-up when pressing the media keys:

Media App Not Registered

The gnome-settings-daemon intercepts X11 media keys and translates them to a MPRIS D-Bus call. We should be able to register and respond to these via the QtDBUS module, and bind as outlined in the MPRIS specification linked above.

In the meantime, effected GNOME users can disable the gnome-settings-daemon bindings to X11 media keys as outlined below:

  1. Install dconf-editor
  2. Open dconf-editor and navigate to org.gnome.settings-daemon.plugins.media-keys.
  3. Remove the previous-static binding by changing the value to nothing (['']).
  4. Repeat the above for pause-static, play-static, stop-static and next-static.
  5. If problems persist, look through the settings in step two and validate nothing is bound to suspicious XF86Audio*keys.
@Skycoder42
Copy link
Owner

Sure, but in my opinion, this is out of scope for this library. However, if a PR integrates nicely with the current API, I might consider adding the feature

@surfzoid
Copy link

Hi,
I'm facing to the same problem, but how VLC, also write in QT don't have it and also handle the global shortcut, without windows focus and without QHotkey library ?!

@surfzoid
Copy link

Hi,
finally i got it!
after following your 5 step, the popup still here when pressing play, stop and so on.
solution is to go in gnome setup->keyboard shortcut and use the "cross" to restore default value, aka nothing

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

No branches or pull requests

3 participants