<div class="gmail_extra">The correct way is indeed registering the x-scheme-handler/mailto mime type. To get a list of apps that can do that, just query for this mime type. The user's preference is set by modifying which default app opens the x-scheme-handler/mailto mime type, like it would check for the default text/plain app.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra"><a href="http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-0.11.html">http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-0.11.html</a><br>

</div><div class="gmail_extra"><br clear="all">J. Leclanche<br>
<br><br><div class="gmail_quote">On Fri, Nov 23, 2012 at 5:50 PM, Jan Kundrát <span dir="ltr"><<a href="mailto:jkt@flaska.net" target="_blank">jkt@flaska.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div id=":39q">As of 2), my understanding is that the x-scheme-handler/mailto MIME type in a .desktop file might be the way to go, but that applications shall never put that into their own .desktop files. I've read through KDE's code, started at /usr/share/applications/kde4/<u></u>kmailservice.desktop, continued via kdelibs/kio/misc/kmailservice.<u></u>cpp to kdelibs/kdecore/kernel/<u></u>ktoolinvocation.cpp and stopped at [1] which looks like the choice of a default is indeed handled by the user's preferences.<br>

</div></blockquote></div><br></div>