[Telepathy] RequestedPresence on org.freedesktop.Telepathy.Account

Sveinung Kvilhaugsvik sveinung84 at users.sourceforge.net
Wed Aug 20 16:48:33 PDT 2008


Hello!

> It should go online. Can you verify whether the connection manager is
> started?
Thanks a lot for the tips. It isn't. Seems to be a problem with the
system I am developing on. When I tried to start the connection
manager (salut) manually by loading it from the program I got an
error. DBus didn't load it even if a .service file exists for salut.
(Don't know when this started, it used to work) I didn't get the error
when I started the connection manager manually and started my program
before it exited, but Mission Control still would still not bring the
account online. I will try to create a new development environment and
see if the problem goes away.

> Or post here the logs from mission-control, by killing any
> existing instance and running it like this:
>
> MC_DEBUG=2 mission-control
The log from the whole program:
** (process:17113): DEBUG: dbusprop_get:
org.freedesktop.Telepathy.AccountManager, ValidAccounts
** (process:17113): DEBUG: get_valid_accounts called
** (process:17113): DEBUG: dbusprop_get:
org.freedesktop.Telepathy.Account, DisplayName
** (process:17113): DEBUG: get_display_name called for
salut/local_2dxmpp/account0
** (process:17113): DEBUG: dbusprop_get:
org.freedesktop.Telepathy.Account, DisplayName
** (process:17113): DEBUG: get_display_name called for
salut/local_2dxmpp/account1
** (process:17113): DEBUG: dbusprop_get:
org.freedesktop.Telepathy.Account, Connection
** (process:17113): DEBUG: get_connection called for salut/local_2dxmpp/account0
** (process:17113): DEBUG: dbusprop_get:
org.freedesktop.Telepathy.Account, Connection
** (process:17113): DEBUG: get_connection called for salut/local_2dxmpp/account1
** (process:17113): DEBUG: mcd_dbusprop_set_property:
org.freedesktop.Telepathy.Account, RequestedPresence
** (process:17113): DEBUG: set_requested_presence called for
salut/local_2dxmpp/account0
** (process:17113): DEBUG: setting requested presence: 2, ,
** (process:17113): DEBUG: dbusprop_get:
org.freedesktop.Telepathy.Account, Connection
** (process:17113): DEBUG: get_connection called for salut/local_2dxmpp/account0
** (process:17113): DEBUG: dbusprop_get:
org.freedesktop.Telepathy.Account, Connection
** (process:17113): DEBUG: get_connection called for salut/local_2dxmpp/account1

> How did you set the RequestedPresence?
By casting the account to org.freedesktop.DBus.Properties and calling
.Set, like this:
       Presence_Struct newStatus = new Presence_Struct(new UInt32(2), "", msg);
       ((Properties)account).Set("org.freedesktop.Telepathy.Account",
"RequestedPresence", newStatus);

Thank you for your help
Sveinung Kvilhaugsvik


More information about the Telepathy mailing list