From 99ce33b5078ef5db9dcaf198a2c739fd88f8feb2 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 22 Feb 2010 09:12:04 +0000 Subject: Stop using org.gnome.Empathy We can use org.freedesktop.Telepathy.Client.Empathy to check if another Empathy instance is running. --- src/empathy.c | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) (limited to 'src') diff --git a/src/empathy.c b/src/empathy.c index 33c05dc81..a68d0d226 100644 --- a/src/empathy.c +++ b/src/empathy.c @@ -568,7 +568,6 @@ main (int argc, char *argv[]) EmpathyIdle *idle; EmpathyConnectivity *connectivity; GError *error = NULL; - TpDBusDaemon *dbus_daemon; UniqueApp *unique_app; gboolean chatroom_manager_ready; @@ -630,7 +629,8 @@ main (int argc, char *argv[]) g_log_set_default_handler (tp_debug_sender_log_handler, G_LOG_DOMAIN); #endif - unique_app = unique_app_new_with_commands ("org.gnome.Empathy", + unique_app = unique_app_new_with_commands ( + "org.freedesktop.Telepathy.Client.Empathy", NULL, "accounts_dialog", COMMAND_ACCOUNTS_DIALOG, NULL); if (unique_app_is_running (unique_app)) @@ -642,26 +642,6 @@ main (int argc, char *argv[]) return EXIT_SUCCESS; } - /* Take well-known name */ - dbus_daemon = tp_dbus_daemon_dup (&error); - if (error == NULL) - { - if (!tp_dbus_daemon_request_name (dbus_daemon, - "org.gnome.Empathy", TRUE, &error)) - { - DEBUG ("Failed to request well-known name: %s", - error ? error->message : "no message"); - g_clear_error (&error); - } - g_object_unref (dbus_daemon); - } - else - { - DEBUG ("Failed to dup dbus daemon: %s", - error ? error->message : "no message"); - g_clear_error (&error); - } - if (account_dialog_only) { account_manager = tp_account_manager_dup (); -- cgit v1.2.3