Bug 222675

Summary: Opening a contact via Krunner opens the vcard in Kate
Product: [Plasma] krunner Reporter: Dotan Cohen <kde-2011.08>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: arthur, asraniel, axel.ece, dglent, heri+kde, josh+tech, justin.zobel, kde-2011.08, mat69, sorabsuperstar, tayfun.baltaci
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Unspecified   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Dotan Cohen 2010-01-14 11:17:52 UTC
Version:            (using KDE 4.3.4)
Installed from:    Unspecified Linux

Opening a contact via Krunner opens the vcard in Kate instead of opening a Kmail compose window. This is on KDE SC 4.4 RC1 with the new Kaddressbook.
Comment 1 Alexis Ntounas 2010-05-17 19:20:20 UTC
If I open a PersonalContact from Krunner Kaddressbook tries to open but if fails.

Another user has told me that in his system Kate opens the VCF card of the contact.

Of course this has to do with the file association of .vcf files. Which should be the preferred application? Kate or Kaddressbook? If it's Kaddressbook there is the problem mentioned above.

I am using KDE SC 4.4.3 (Archlinux).
Comment 2 Matthias Fuchs 2010-12-02 23:22:53 UTC
There are some (understandable) misconceptions here:
1. The "Contacts" runner shows you results in the form "E-mail to ...", activating those results will start Kmail as you want
2. The "Nepomuk Desktop Search Runner" shows you the contacts in vcf form, that KAdressbook can't handle that is most likely -- have to look at the runner's code first -- a problem of KAdressbook, not the runner itself

So the second case should never open the kmail compose window, it rather should (!, no it does not) open KAdressbook and opening that contact, so that you can modify it.
Comment 3 Jekyll Wu 2011-12-09 09:03:55 UTC
*** Bug 270569 has been marked as a duplicate of this bug. ***
Comment 4 Josh Liberty 2013-07-15 19:02:40 UTC
This is still happening on KDE 4.10.5.
Is there no work to fix this?
Comment 5 sorab 2013-11-21 17:37:17 UTC
I think that this boils down to the same root cause as Bug 317483, which is status "unconfirmed" though, but indeed Laurent Montel replied there. Please let him know that there are many people interested in this feature
Comment 6 sorab 2013-11-22 16:16:44 UTC
Laurent immediately reacted, committed and fixed.
So in upcoming 4.13 krunner should be able to open vcards in kaddressbook by using the new import parameter via MIME types
Comment 7 Dennis Schridde 2013-12-22 11:35:48 UTC
Is this a duplicate of bug #175832, which also extends upon the problem reported here, by suggesting some more advanced features?
Comment 8 Dotan Cohen 2013-12-22 12:08:48 UTC
Thank you Dennis. This is not a dupe, but it is related to the same feature.
Comment 9 Dimitrios Glentadakis 2013-12-23 12:49:02 UTC
Do we have to use nepomuk for this?
I don't use nepomuk and i would like to have this feature:
https://bugs.kde.org/show_bug.cgi?id=175832
Comment 10 Justin Zobel 2020-11-22 04:26:59 UTC
I've just tested adding a contact to Kontact and when searching for it in krunner and hitting enter I get a new email come up in contact.

Can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved. I've set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved" when you respond, thanks.

As for any feature requests please put them in a separate bug report so they can be tracked.
Comment 11 sorab 2020-11-22 13:49:35 UTC
Hi Justin

Wow, this is quite a while ago, haven't been using Kontact in a while. But thanks for following up even after such a long time.
I installed Kontact now to test and can confirm: When clicking contacts Krunner found in AKonadi/Kontact, it is now opening a new Kontact window with a new email draft to that person's email address.

Using:
Kontact Version 5.15.3 (20.08.3) 
KDE Plasma Version: 5.20.3
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.1
Operating System: KDE neon 5.20
Comment 12 sorab 2020-11-22 14:00:42 UTC
PS: One thing I noticed though: Apparently Kontact has to be running in the background. If it is not running, krunner wont (or fails to) start it. So clicking a contact then only gives me a bouncing Kontact icon for a few seconds and nothing follows.
Comment 13 Justin Zobel 2020-11-22 22:32:01 UTC
(In reply to sorab from comment #12)
> PS: One thing I noticed though: Apparently Kontact has to be running in the
> background. If it is not running, krunner wont (or fails to) start it. So
> clicking a contact then only gives me a bouncing Kontact icon for a few
> seconds and nothing follows.

Thanks for confirming the fix sorab. If you're able to please create a new issue for the issue where Kontact/kmail2 must be open for the contact opening to work (I can confirm the issue exists) so we can track it separately that would be great, thanks.