mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
daemon: Don't treat it as a fatal error if we can't connect to the session bus
http://lists.freedesktop.org/archives/pulseaudio-discuss/2011-June/010276.html
This commit is contained in:
parent
3c4d43d9dc
commit
6d58497dd1
2 changed files with 7 additions and 7 deletions
|
|
@ -1107,14 +1107,14 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
#ifdef HAVE_DBUS
|
||||
if (!conf->system_instance) {
|
||||
if (!(server_lookup = pa_dbusobj_server_lookup_new(c)))
|
||||
goto finish;
|
||||
if (!(lookup_service_bus = register_dbus_name(c, DBUS_BUS_SESSION, "org.PulseAudio1")))
|
||||
goto finish;
|
||||
if ((server_lookup = pa_dbusobj_server_lookup_new(c))) {
|
||||
if (!(lookup_service_bus = register_dbus_name(c, DBUS_BUS_SESSION, "org.PulseAudio1")))
|
||||
goto finish;
|
||||
}
|
||||
}
|
||||
|
||||
if (start_server && !(server_bus = register_dbus_name(c, conf->system_instance ? DBUS_BUS_SYSTEM : DBUS_BUS_SESSION, "org.pulseaudio.Server")))
|
||||
goto finish;
|
||||
if (start_server)
|
||||
server_bus = register_dbus_name(c, conf->system_instance ? DBUS_BUS_SYSTEM : DBUS_BUS_SESSION, "org.pulseaudio.Server");
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_FORK
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue