diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-02-22 17:12:04 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-02-22 21:08:40 +0800 |
commit | 99ce33b5078ef5db9dcaf198a2c739fd88f8feb2 (patch) | |
tree | 47ecf1693cfd74971a64fbb92de87fccf2d63880 /src/empathy.c | |
parent | 8b7b49e0fa549ead1f7f8a62914f3c50576fac10 (diff) | |
download | gsoc2013-empathy-99ce33b5078ef5db9dcaf198a2c739fd88f8feb2.tar gsoc2013-empathy-99ce33b5078ef5db9dcaf198a2c739fd88f8feb2.tar.gz gsoc2013-empathy-99ce33b5078ef5db9dcaf198a2c739fd88f8feb2.tar.bz2 gsoc2013-empathy-99ce33b5078ef5db9dcaf198a2c739fd88f8feb2.tar.lz gsoc2013-empathy-99ce33b5078ef5db9dcaf198a2c739fd88f8feb2.tar.xz gsoc2013-empathy-99ce33b5078ef5db9dcaf198a2c739fd88f8feb2.tar.zst gsoc2013-empathy-99ce33b5078ef5db9dcaf198a2c739fd88f8feb2.zip |
Stop using org.gnome.Empathy
We can use org.freedesktop.Telepathy.Client.Empathy to check if another
Empathy instance is running.
Diffstat (limited to 'src/empathy.c')
-rw-r--r-- | src/empathy.c | 24 |
1 files changed, 2 insertions, 22 deletions
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 (); |