diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2010-07-12 01:19:17 +0200 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2010-07-12 01:19:17 +0200 |
commit | 7b39a690ff4162f0f3464f6c58c005a62d40840a (patch) | |
tree | 3d30de360d26386a394c32483adb12a75c900ae5 | |
parent | b62839b39a5f8fd623bf27b43e1645487461a768 (diff) |
Request a well-known name for the service
-rw-r--r-- | src/service.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c index 632c346..2fcb573 100644 --- a/src/service.c +++ b/src/service.c @@ -19,6 +19,8 @@ #include "config.h" +#include <stdlib.h> + #include <gio/gunixsocketaddress.h> #include <telepathy-glib/channel.h> @@ -147,6 +149,10 @@ main (gint argc, gchar *argv[]) g_type_init (); dbus = tp_dbus_daemon_dup (NULL); + if (!tp_dbus_daemon_request_name (dbus, + "org.freedesktop.Telepathy.Client.TelepathySSH", TRUE, NULL)) + return EXIT_FAILURE; + client = tp_simple_handler_new (dbus, FALSE, FALSE, "TelepathySSHService", FALSE, got_channel_cb, NULL, NULL); |