After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 631451 - Add handlers for x-scheme-handler/mailto
Add handlers for x-scheme-handler/mailto
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
3.0.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks: 631433
 
 
Reported: 2010-10-05 16:24 UTC by Bastien Nocera
Modified: 2013-09-13 01:09 UTC
See Also:
GNOME target: 3.0
GNOME version: ---


Attachments
evo patch (3.89 KB, patch)
2010-10-20 13:23 UTC, Milan Crha
committed Details | Review

Description Bastien Nocera 2010-10-05 16:24:34 UTC
So that Evolution is listed as one of the mail clients in the preferred applications panel.
Comment 1 Matthew Barnes 2010-10-05 16:54:59 UTC
Note, our "mailto-handler" module will need to be updated to support the new scheme.  It nags you about making Evolution your default email client when the app starts up.

http://git.gnome.org/browse/evolution/tree/modules/mailto-handler/evolution-mailto-handler.c
Comment 2 Milan Crha 2010-10-20 13:23:46 UTC
Created attachment 172843 [details] [review]
evo patch

for evolution;

I cannot test it with the control-center, but if I didn't do a typo then this should make it work, right?

Note I removed the %s from the MAILTO_COMMAND, because using G_APP_INFO_CREATE_SUPPORTS_URIS adds a %u to the command line on its own.
Comment 3 Milan Crha 2010-10-20 13:25:41 UTC
Created commit 61999b4 in evo master (2.91.2+)
Comment 4 Bastien Nocera 2010-10-20 13:49:12 UTC
Review of attachment 172843 [details] [review]:

::: modules/mailto-handler/evolution-mailto-handler.c
@@ +212,2 @@
 	/* Configure Evolution to be the "mailto" URI handler. */
+	app_info = g_app_info_create_from_commandline (

Why do that when you can get the .desktop file for it instead?
Comment 5 Milan Crha 2010-10-21 07:07:45 UTC
(In reply to comment #4)
> Review of attachment 172843 [details] [review]:
> 
> ::: modules/mailto-handler/evolution-mailto-handler.c
> @@ +212,2 @@
>      /* Configure Evolution to be the "mailto" URI handler. */
> +    app_info = g_app_info_create_from_commandline (
> 
> Why do that when you can get the .desktop file for it instead?

I didn't know how, so I chose this approach. And it was also closer to the previous solution.