Open zoqaeski opened 10 years ago
mpDris2 never grabs key events directly; org.gnome.SettingsDaemon.MediaKeys
via DBus is the only interface it supports.
However, In GNOME 3.10, if no players have registered with gnome-settings-daemon for media keys, g-s-d will control them directly using MPRIS.
It seems that MATE's settings-daemon has a dedicated "mpris" plugin that works the same way. (Except MATE decided to hardcode supported players because NameOwnerChanged is too hard for them ಠ_ಠ)
So it's might be a problem with mate-settings-daemon; maybe it doesn't interact too well with the other keybindings you have? You could try to verify your own guess by removing the Openbox keybindings and checking if the problem still persists.
Usually at least once a day, especially after resuming from a suspend, mpDris2 will appear to be working but not respond to multimedia keys. Interestingly enough I can still send commands to it via D-Bus.
I often use MPD's single mode to pause an album, and have
Shift-Xf86AudioPlay
bound tompc single
andShift-Xf86AudioPrev
bound tompc seek 0
to restart a song (via Openbox). Could that be part of the problem? Using a modifier on the other multimedia keys doesn't seem to send the signal to mpDris2, even though the plain key will.I'm using MATE desktop environment on Arch Linux x86-64, with Openbox as my window manager. I always get warnings about a failure to connect to GNOME Settings Daemon, but it seems to work.
Here's a typical debug log, if that will shed some insight: