[maemo-developers] How to add a telepathy account during package installation (and remove on package removal)?

From: Alberto Mardegan mardy at users.sourceforge.net
Date: Sun Aug 1 20:39:22 EEST 2010
Hi Sudheer,

On 08/01/2010 08:07 PM, Sudheer K wrote:
> I need to add account details in /home/user/.rtcom-accounts/accounts.cfg for my
> custom connection manager automatically on package installation. Similar to ring
> account details, I want to avoid UI (like Haze plugin) because these values are
> pre-defined and user does not have to add/update anything.
>
> So my question is how can I add a new account section in accounts.cfg through
> code? I also should be able to remove it through code.

You need to use the org.freedesktop.Telepathy.AccountManager interface 
to create a new account.
The mc-tool command-line tool can also be used to create/edit/delete 
accounts from a script. It's in the libmissioncontrol-utils package, 
which is not installed by default.

Ciao,
   Alberto

-- 
http://blog.mardy.it <- geek in un lingua international!
More information about the maemo-developers mailing list