changeset 3887:698e76cd10a5

Automated merge with ssh://hg.atheme.org//hg/audacious
author William Pitcock <nenolod@atheme.org>
date Thu, 01 Nov 2007 19:28:40 -0500
parents 5c8d5ff0e601 (diff) 30fa2b9e7c84 (current diff)
children edd7da52849f
files
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/dbus.c	Thu Nov 01 15:31:24 2007 -0700
+++ b/src/audacious/dbus.c	Thu Nov 01 19:28:40 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) {