Registering my application as capable of handling the mailto: URLs

Jerome Leclanche adys.wh at
Fri Nov 23 09:59:37 PST 2012

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.

J. Leclanche

On Fri, Nov 23, 2012 at 5:50 PM, Jan Kundrát <jkt at> wrote:

> 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/**kmailservice.desktop, continued
> via kdelibs/kio/misc/kmailservice.**cpp to kdelibs/kdecore/kernel/**ktoolinvocation.cpp
> and stopped at [1] which looks like the choice of a default is indeed
> handled by the user's preferences.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the xdg mailing list