changeset 3886:5c8d5ff0e601

fix exit_on_disconnect behaviour.
author William Pitcock <nenolod@atheme.org>
date Thu, 01 Nov 2007 19:27:28 -0500
parents 106bbe8b29be
children 698e76cd10a5
files src/audacious/dbus.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/dbus.c	Thu Nov 01 16:21:57 2007 -0500
+++ b/src/audacious/dbus.c	Thu Nov 01 19:27:28 2007 -0500
@@ -161,6 +161,7 @@
 
 void init_dbus() {
     GError *error = NULL;
+    DBusConnection *local_conn;
     // Initialize the DBus connection
     dbus_conn = dbus_g_bus_get(DBUS_BUS_SESSION, &error);
     if (dbus_conn == NULL) {
@@ -175,6 +176,9 @@
     mpris = g_object_new(mpris_player_get_type(), NULL);
     g_object_new(mpris_tracklist_get_type(), NULL);
     g_message("D-Bus support has been activated");
+
+    local_conn = dbus_g_connection_get_connection(dbus_conn);
+    dbus_connection_set_exit_on_disconnect(local_conn, FALSE);
 }
 
 GValue *tuple_value_to_gvalue(Tuple *tuple, const gchar *key) {