Description of problem: Connecting to PulseAudio DBus interface does not work with the example provided in developers documentation, because the server lookup mechanism returns an address of a socket, which does not exist. http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/Developer/Clients/DBus/ConnectingToServer Version-Release number of selected component (if applicable): pulseaudio-4.0-9.gitf81e3.fc20.x86_64 How reproducible: always Steps to Reproduce: $ python Python 2.7.5 (default, Nov 12 2013, 16:45:54) [GCC 4.8.2 20131017 (Red Hat 4.8.2-1)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import dbus >>> bus = dbus.SessionBus() >>> server_lookup = bus.get_object("org.PulseAudio1", "/org/pulseaudio/server_lookup1") >>> address = server_lookup.Get("org.PulseAudio.ServerLookup1", "Address", dbus_interface="org.freedesktop.DBus.Properties") >>> print address unix:path=/run/user/1000/pulse/dbus-socket >>> $ ls /run/user/1000/pulse/dbus-socket ls: cannot access /run/user/1000/pulse/dbus-socket: No such file or directory $ ls /run/user/1000/pulse native= pid
Most likely this is a case of either: * out-of-date documentation and/or * deprecated interface as hinted. "NB: This scheme will very likely be changed, details about this are in this mailing list message: [https://tango.0pointer.de/pipermail/pulseaudio-discuss/2009-July/004437.html]." I'd recommend contacting the aforementioned mailing list for confirmation.
I found out that adding 'load-module module-dbus-protocol' into /etc/pulseaudio/default.pa fixes the problem and the socket file appears. This was not necessary in Fedora 19. But I think the DBus interface for server lookup should not exist if the module is not loaded, or should return some other value.
http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/daemon/default.pa.in?id=dcb52b0844c21c7fe591ef1cfacafbda1df770f0 Looks like not loading by default is on purpose
OK. If that's intentional, then PulseAudio should NOT expose /org/pulseaudio/server_lookup1 object if the DBus module is not loaded. The object does not provide any other information, than the location of the socket.
Again, I'd recommend taking the issue upstream. There's little chance we'll be making any downstream-specific changes here.
This message is a reminder that Fedora 20 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 20. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '20'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 20 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.