This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Contacts runner doesn't work. How can I debug it?

Tags: None
(comma "," separated)
jcromero
Registered Member
Posts
14
Karma
0
OS
Hello.

I have never been able to use contacts runner in my plasma desktop. I have the runner enabled in krunner config, I'm using Google Contacts akonadi resource as my only source of contacts. I can see all my Google contacts in KAddressBook, but when I type a contact name in krunner (ALT+F2) nothing happens. Am I missing anything? How could I debug this issue?

Thanks.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Have you tried enabling the "Nepomuk Desktop Search" runner as well?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
jcromero
Registered Member
Posts
14
Karma
0
OS
bcooksley wrote:Have you tried enabling the "Nepomuk Desktop Search" runner as well?


Yes, it is enabled. I can not figure out what is happening. Do you know how can I debug the issue?
jcromero
Registered Member
Posts
14
Karma
0
OS
bcooksley wrote:Have you tried enabling the "Nepomuk Desktop Search" runner as well?


I can see an entry with the name of the contact searched for, tagged "Contact" with the Nepomuk icon, but that is not what I'm looking for. I want to be able to send an email by introducing some letters of a contact name and pressing Enter. I suppose the contacts runner works that way, or am I wrong?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
The Contacts runner should work like that in theory at least, yes. I have just checked the code, and unfortunately the Contacts runner uses the legacy, pre-Akonadi system to access Contact information, which explains why it isn't working for you. At some point it will likely need to be ported I suspect.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
jcromero
Registered Member
Posts
14
Karma
0
OS
I'm using debian sid packaging of KDE 4.11.3.

I have read the source code here: http://sources.debian.net/src/kdeplasma ... runner.cpp.

Is that KABC class the pre-Akonadi system you are referring to? I don't understand either why Aaron Seigo and Sebastian Kügler told me on #plasma IRC channel that the runner was working for them. I suppose they are using Akonadi, or perhaps, not. Or maybe they are using a ported version.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
KABC is the pre-Akonadi system, yes. One possible reason it worked for them is that they may have a KABC <-> Akonadi bridge on their systems. You would need to check with them on the specifics however, I may have misread the code. (I know some parts of KABC are definitely still used even in the Akonadi era..)


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
jcromero
Registered Member
Posts
14
Karma
0
OS
If I use such a bridge, does it mean that I have to put my Google Contacts in a local vcard address book?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
No, that will not be necessary. The bridge merely provides Akonadi data through the KABC system, allowing the Contacts runner to function in the process .


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
jcromero
Registered Member
Posts
14
Karma
0
OS
bcooksley wrote:No, that will not be necessary. The bridge merely provides Akonadi data through the KABC system, allowing the Contacts runner to function in the process .


Could you tell me how can I do that? A reference link should be enough.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Run "kcmshell4 kresources", and select "Contacts" from the drop down. Then add a "Akonadi Address Books" entry.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
jcromero
Registered Member
Posts
14
Karma
0
OS
It's working now, but the contacts appear twice in krunner. Do you know why?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
You probably need to disable the Nepomuk Search runner - otherwise it could be a bug in the Akonadi <-> KABC bridge...


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
jcromero
Registered Member
Posts
14
Karma
0
OS
I have disabled my Nepomuk Search runner, but the contacts appear twice again. This is in a KDE 4.11.3 (debian sid packaging) netbook, but in my desktop computer, where I run KDE 4.10.5 (debian testing packaging) the runner works perfectly now. Only one entry per contact. Coud that be a regression? Do you have any suggestion about what can be the problem in that case?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Unfortunately I have very little information on this - I can suggest that you make sure only one Akonadi bridge has been added in the kresources settings though, or try removing it and adding it back again.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar