Sample Header Ad - 728x90

How to get the destinations of two instances of VLC

1 vote
1 answer
226 views
If you have only one instance of VLC running, you can talk to VLC with dbus-send using org.mpris.MediaPlayer2.vlc as destination:
$ dbus-send --dest=org.mpris.MediaPlayer2.vlc  ...
If you have two instances of VLC running, they have different destinations xxxx and yyyy. If you want to talk to one of them, you must use xxxx or yyyy as destination:
$ dbus-send --dest=:xxxx   ...
The destination of the first instance I can find in this way:
$ dbus-send --print-reply --dest=org.freedesktop.DBus  /org/freedesktop/DBusorg.freedesktop.DBus.ListQueuedOwners  string:org.mpris.MediaPlayer2.vlc

method return time=1702494718.199915 sender=org.freedesktop.DBus -> destination=:1.1256 serial=3 reply_serial=2
   array [
      string ":1.1251"
   ]
Then I see that the destination is 1.1251 But how can I get the destination of the second instance?
Asked by Eddy Sorngard (23 rep)
Dec 13, 2023, 10:04 PM
Last activity: Dec 14, 2023, 11:39 AM