Hello,

I'm one of the developer of pyhalebarde (the game that use d-bus tubes), I have
isolated the code to establish the tubes in this branch :
http://repo.or.cz/w/dtube-test.git
so it can serve as a cleaner example.

On Wed, Mar 11, 2009 at 5:28 AM, Jiri Baum <[email protected]> wrote:
>> > > - You still use the old tube API. We are currently working on a new,
>> > > more coherent, API where each tube is a channel.
>
>> > Ah. That will make more sense, but it's an experimental,
>> > not-yet-available interface; still, links added.
>
>> Indeed the API is still a DRAFT but that's definitely the way to go. I
>> think you should use it in your example.
>
> I've been aiming for interfaces as they would be available on standard
> machines - say, the latest Ubuntu - so that things written according to the
> howto would be deployable right away. That's why I was avoiding DRAFT
> interfaces...
>
From what I've heard the new tube API should be included in jaunty
(but still as a
draft). And from experience the new API works a lot better .

>> > Probably the most embarrassing weakness of the example right now is the
>> > error message, "Alice offered you an invitation, but you don't have the
>> > needed external application to handle it." How do I tell telepathy that
>> > I'm handling the tube and that it shouldn't do that, please?
>
>> You need to implement a tube handler in your application.
>> See [1] for its current API.
>
> Yes, I've already done that in the latest version of the example, as well as
> the bug work-around (this API can't handle tube types with dots in them).
>
With the newest telepathy it should work. At least we managed to make this
work in pyhalebarde and you don't need the workaround anymore.

You also need to reload the config of D-Bus after installing the service file
with the command :
dbus-send --print-reply --session --type=method_call --dest=org
.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig

And you can check if your service is activatable , with the command :
dbus-send --print-reply --session --type=method_call --dest=org
.freedesktop.DBus / org.freedesktop.DBus.ListActivatableNames
Olivier

-- 
Olivier LĂȘ Thanh Duong <[email protected]>
Phone : +32485608639 Jabber: [email protected]
_______________________________________________
telepathy mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/telepathy

Reply via email to