# HG changeset patch # User Matti Hamalainen # Date 1213196493 -10800 # Node ID 64c40b3e69f4264b9a6a69378af51ae25f976b41 # Parent d239bf252eacd7120337fa5095ad9d479be6c30f Added few g_messages() to ease debugging of certain D-Bus-related problems. diff -r d239bf252eac -r 64c40b3e69f4 src/audacious/dbus.c --- a/src/audacious/dbus.c Wed Jun 11 18:00:29 2008 +0300 +++ b/src/audacious/dbus.c Wed Jun 11 18:01:33 2008 +0300 @@ -89,6 +89,7 @@ DBusGProxy *driver_proxy; guint request_ret; + g_message("Registering remote D-Bus interfaces"); dbus_g_object_type_install_info(audacious_rc_get_type(), &dbus_glib_audacious_rc_object_info); @@ -166,6 +167,7 @@ GError *error = NULL; DBusConnection *local_conn; // Initialize the DBus connection + g_message("Trying to initialize D-Bus"); dbus_conn = dbus_g_bus_get(DBUS_BUS_SESSION, &error); if (dbus_conn == NULL) { g_warning("Unable to connect to dbus: %s", error->message); @@ -174,9 +176,14 @@ } g_type_init(); + g_message("D-Bus RC"); g_object_new(audacious_rc_get_type(), NULL); + g_message("D-Bus MPRIS root"); g_object_new(mpris_root_get_type(), NULL); + g_message("D-Bus MPRIS player"); mpris = g_object_new(mpris_player_get_type(), NULL); + g_message("result=%p", mpris); + g_message("D-Bus MPRIS tracklist"); g_object_new(mpris_tracklist_get_type(), NULL); g_message("D-Bus support has been activated");