[Gambas-user] Triggering org.freedesktop.DBus.Properties.PropertiesChanged
bsteers4 at gmail.com
Tue Feb 7 16:44:51 CET 2023
I'm trying to make a dbus mpris interface for a MediaView control.
I have some stuff working like cinnamon media control applet will
What i am stuck with at present is being able to trigger the
I have this code...
Public Sub _new()
$hDSignal = New DBusSignal(DBus.Session,
"org.freedesktop.DBus.Properties", True) As "DBusSignal"
Public Sub DBusSignal_Signal(Sig As String, arg As Variant)
If Sig <> "PropertiesChanged" Then Return
If arg <> "org.mpris.MediaPlayer2.Player" Then Return
Dim c As Collection = arg
For Each v As Variant In c
' Print c.Key, v
Print "unhandled:";; c.Key, v
With that if i click Play/pause in spotify i get the PlaybackStatus
But i cannot get my mpris interface to trigger the above property change
Is it not supposed to be automatic?
the PlaybackStatus property is read only so i cannot set it directly.
Anyone crossed this bridge before and figured a way to trigger the
Am i missing something obvious?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the User