PA should not expose /org/pulseaudio/server_lookup1 object if DBus module is unloaded
Submitted by Jan Včelák
Assigned to pul..@..op.org
Description
If DBus module is not loaded into PulseAudio, the DBus interface for server socket lookup is still available and the property Address returns a path to non-existing file.
IMHO, PA should not expose /org/pulseaudio/server_lookup1 object if the DBus module is unloaded.
Example:
$ 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