![]() |
Re: Dbus Help
Quote:
I have been playing around with my handle_presence function (here's what it looks like). Can you give me a little more help to get this to work?: Code:
def handle_presence(dictionary): |
Re: Dbus Help
I ended up getting it to work by using the db2p function at the bottom of this page: http://telepathy.freedesktop.org/wik...rial%20Example
Then I searched for a particular string in the message (that I set). I feel like there should be an easier / cleaner way to do this, but what I did worked for me. |
Re: Dbus Help
Does anyone know how to send a message to a user via a dbus command? It appears that I need to create a channel first, but I am at a loss on how to do this.
This is what I have so far, but I am stuck after that: Code:
bus = dbus.SessionBus() Code:
account.Set('org.freedesktop.Telepathy.Channel.Interface.Messages', 'Send', dbus.Struct(( dbus.UInt32(0) , presence_text, ""), signature='uss'), dbus_interface='org.freedesktop.DBus.Properties') http://wiki.maemo.org/Adventures_with_D-Bus |
All times are GMT. The time now is 06:08. |
vBulletin® Version 3.8.8