[telepathy-mission-control/master] McdDispatcher: construct object paths for clients with "." in their name correctly
Simon McVittie
simon.mcvittie at collabora.co.uk
Mon Apr 20 08:52:48 PDT 2009
telepathy-spec explains that, for instance, the client named
o.f.T.C.Empathy._1_42.Window2 has the object path
/o/f/T/C/Empathy/_1_42/Window2.
This patch fixes a crash whenever a Client with such a name is contacted.
---
src/mcd-dispatcher.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/mcd-dispatcher.c b/src/mcd-dispatcher.c
index 6a05cb1..1765685 100644
--- a/src/mcd-dispatcher.c
+++ b/src/mcd-dispatcher.c
@@ -2115,6 +2115,7 @@ create_client_proxy (McdDispatcher *self, McdClient *client)
bus_name = g_strconcat (MC_CLIENT_BUS_NAME_BASE, client->name, NULL);
object_path = g_strconcat (MC_CLIENT_OBJECT_PATH_BASE, client->name, NULL);
+ g_strdelimit (object_path, ".", '/');
client->proxy = g_object_new (TP_TYPE_PROXY,
"dbus-daemon", priv->dbus_daemon,
"object-path", object_path,
--
1.5.6.5
More information about the telepathy-commits
mailing list