[pulseaudio-discuss] Pulseaudio not available on D-BUS ??
Tanu Kaskinen
tanu.kaskinen at linux.intel.com
Tue May 6 08:36:22 PDT 2014
On Tue, 2014-05-06 at 16:05 +0200, Fabrice Delente wrote:
> Hello.
>
> This is on Gentoo Linux.
>
> I'm trying to control Pulseaudio through D-Bus; I have read and tried
> to understand their documentations. But I run into a first problem:
> trying to connect to Pulseaudio, it seems it's not available on the
> bus : having Pulseaudio running with start-pulseaudio-x11, I then try
> in Python
>
> $ python
> >>> import dbus
> >>> dbus.SystemBus().list_activatable_names()
> dbus.Array([dbus.UTF8String('org.freedesktop.DBus'),
> dbus.UTF8String('org.freedesktop.PolicyKit1'),
> dbus.UTF8String('org.freedesktop.Avahi'),
> dbus.UTF8String('org.bluez'),
> dbus.UTF8String('org.freedesktop.ModemManager1'),
> dbus.UTF8String('org.freedesktop.NetworkManager'),
> dbus.UTF8String('org.freedesktop.ConsoleKit'),
> dbus.UTF8String('org.freedesktop.UPower'),
> dbus.UTF8String('org.freedesktop.UDisks2'),
> dbus.UTF8String('org.freedesktop.UDisks'),
> dbus.UTF8String('fi.epitest.hostap.WPASupplicant'),
> dbus.UTF8String('org.freedesktop.RealtimeKit1'),
> dbus.UTF8String('fi.w1.wpa_supplicant1'),
> dbus.UTF8String('org.freedesktop.nm_dispatcher')],
> signature=dbus.Signature('s'))
> >>> dbus.SessionBus().list_activatable_names()
> dbus.Array([dbus.UTF8String('org.freedesktop.DBus'),
> dbus.UTF8String('org.hexchat.service'),
> dbus.UTF8String('org.freedesktop.Notifications'),
> dbus.UTF8String('org.gnome.evince.Daemon'),
> dbus.UTF8String('org.xfce.Thunar'),
> dbus.UTF8String('org.gnome.GConf'),
> dbus.UTF8String('org.xfce.vfs.Daemon'),
> dbus.UTF8String('org.gtk.vfs.Metadata'),
> dbus.UTF8String('org.a11y.Bus'),
> dbus.UTF8String('org.gtk.Private.UDisks2VolumeMonitor'),
> dbus.UTF8String('org.xfce.Xfconf'),
> dbus.UTF8String('org.gnome.keyring.SystemPrompter'),
> dbus.UTF8String('org.gnome.keyring'),
> dbus.UTF8String('org.gnome.GnomeVFS.Daemon'),
> dbus.UTF8String('org.gtk.vfs.Daemon'),
> dbus.UTF8String('org.freedesktop.Geoclue.Providers.Localnet'),
> dbus.UTF8String('org.freedesktop.secrets'),
> dbus.UTF8String('org.gtk.GLib.PACRunner'),
> dbus.UTF8String('org.gnome.keyring.PrivatePrompter'),
> dbus.UTF8String('org.xfce.FileManager'),
> dbus.UTF8String('org.freedesktop.Geoclue.Master'),
> dbus.UTF8String('org.a11y.atspi.Registry')],
> signature=dbus.Signature('s'))
>
> so nothing looks like pulseaudio there...
>
> Is it normal?
Yes, it's normal. PulseAudio doesn't support D-Bus activation.
Also, have you read [1]? The control interface, which I assume you are
trying to use, is not exposed in any bus. Instead, you make a direct
peer-to-peer connection.
Also, module-dbus-protocol is nowadays commented out in default.pa,
because it tends to crash the server.
[1] http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/Developer/Clients/DBus/
--
Tanu
More information about the pulseaudio-discuss
mailing list