[Kde-pim] [SORT-OF-SOLVED] Re: More breakage on upgrade to 4.4.3

Kevin Krammer kevin.krammer at gmx.at
Tue May 25 09:35:33 BST 2010


On Tuesday, 2010-05-25, Raj Mathur (राज  माथुर) wrote:
> Hi Tobias,
> 
> On Tuesday 25 May 2010, Tobias Koenig wrote:
> > On Tue, May 25, 2010 at 11:10:12AM +0530, Raj Mathur (?????????
> > 
> > ???????????????) wrote:
> > > 3 (new address books popping up) is still unclear -- don't know
> > > whether it's solved or not.  Last time I checked Akonadi still
> > > seemed to be adding new sources whenever it got bored.
> > 
> > No idea about this one, never saw this before... Could it be that
> > some migration tool is running on every startup for you, which tries
> > to migrate your old resources?
> 
> Yes it does.  Some Resource Migrator pops up whenever I start
> kaddressbook or kmail, gives some "Unable to migrate to compatibility
> bridge" or similar messages and then vanishes after a while.  No clue
> where this is coming from.  Can give you exact messages if you like.

That's a tool called kres-migrator.
Its purpose is to help users with existing KDE setups (and thus potentially 
accessing PIM data through the old APIs) to get their data accessible through 
Akonadi as well.

It is triggered by applications using the KResource API and should of course 
run only once per data type (e.g. contacts, calendar).

It repeatedly running always indicates that it wasn't able to complete what it 
was supposed to do which your mentioning an error confirms.

While it is possible to disable the tool, given the concrete error message it 
might be possible to make it complete successfully.

> > > 4 (kbbdb) is not yet solved since the qdbus interface to
> > > kaddressbook seems to have changed.  Anyone got an idea how to (a)
> > > determine which interface should be used and (b) how to send a new
> > > VCard to kaddressbook?
> > 
> > Using DBus interfaces to handle contacts is obsolete, you should use
> > the native C++ classes for this, e.g.
> > 
> >   Akonadi::CollectionDialog - asking the user for a collection to
> > 
> > store the new item (contact) to Akonadi::ItemCreateJob - to store
> > the item
> > 
> >   Akonadi::ContactEditorDialog - to let the user create or edit a
> > 
> > contact
> 
> Isn't there a scripting interface to add contacts to kaddressbook
> anymore?  If not, it would be an immense pity, since (for a start) I'd
> have to recode kbbdb in C++ (from it's current Perl avatar), which would
> be a new project altogether.  I could be wrong, but I was under the
> impression that KDE had a policy about making all interfaces scriptable;
> has that changed?

That's not a policy but if at all a general recommendation.
Some of the KDEPIM apps D-Bus interfaces (ported over from DCOP) were 
conceptionally used to make these apps work together to perform tasks like 
groupware integration.
Things they can now do directly with Akonadi and these interfaces often 
requried unfortunate hacks within the applications.

However, I somewhat agree that it would be nice to keep those that are not too 
hard to maintain, at least until some Akonadi based scripting interface 
replacement is around.

> > > Kaddressbook interfaces seem to change more often than my
> > > undergarments
> > 
> > Hmm? These interfaces existed from KDE 3.X till KDE 4.4, that are
> > several releases and many years...
> 
> In KDE 3 the command to add a an address to kaddressbook was:
> 
>   dcop kaddressbook KAddressBookIface importVCard
> 
> In KDE 4 up to 4.4.3 the command was:
> 
>   qdbus org.kde.kaddressbook /KAddressBook \
>     org.kde.KAddressbook.Core.importVCard

Another option would be to use kabcclient, though this requires the migration 
or manual configuration of the Akonadi KResource plugin for contacts.

This is a tool that was designed to be a scripting interface to KDE's 
addressbook during KDE3 times, but has in itself not been ported to Akonadi 
yet (though I used it quite often to test the Akonadi KResource plugin).

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20100525/715525c6/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list