lua-mpris
lua-mpris copied to clipboard
Properties cannot properly be read with qdbus
trafficstars
While they show up in the qt qDBusViewer, qdbus cannot read the mpv script's properties in that they never return anything. Players, such as Amarok, implementing the same interface, work as expected; there seems to be a difference between them which I am unable to locate.
✓ fratti@archbook ~ $ qdbus org.mpris.MediaPlayer2.mpv.instance0x41266fd8 /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Identity
✓ fratti@archbook ~ $
✓ fratti@archbook ~ $ qdbus org.mpris.MediaPlayer2.amarok /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Identity
Amarok
For scripts which rely on qdbus to work (e.g. Konversation's media script), this is a big issue.
My guess is that the org.freedesktop.DBus.Properties and org.freedesktop.DBus.Introspectable APIs are missing. The Lua DBus library should be the thing to implement that API properly (also probably needs to implement org.freedesktop.DBus.Peer too).