On Monday, 2013-06-17, Jan Kundrát wrote:
> On Monday, 17 June 2013 13:59:24 CEST, Kevin Krammer wrote:
> > I am pretty sure that either goes through
> > KToolInvocation::invokeMailer() or,
> > if the applicaiton directly assembles mails itself, through kdepimlibs
> > MailTransport facilities.
> > In the case of a mailto URI most likely through KRun, but I think that
> > will end up in KToolInvocation eventually.
> 
> I stand corrected, then.

No, no, you were right. I wrote my reply before I saw yours, otherwise that 
would have just been adding more details.
KRun is basically like QDesktopServices::openUrl() but has been around for 
much longer. KToolInvocation::invokeMailer() isn't so much different either, 
just more explicit.

> Anyway, the point was that it's possible to code the required KDE bits for
> "invoking Trojita and sending mail via that" even without touching
> Trojita. It's enough if it somehow manages to call `trojita --mailto
> f...@example.org` even before Trojita is changed to understand this
> command, IMHO.

Indeed. This is a setting somewhere, and the program configured as its target 
doesn't have to do anything other than to provide a .desktop file that tells 
the system where to put the URL (AFAIK) when executing it.

Cheers,
Kevin
-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to