pidgin: 513f591a: Fix the "Send email" context menu option...

nosnilmot at pidgin.im nosnilmot at pidgin.im
Thu May 27 15:55:33 EDT 2010


-----------------------------------------------------------------
Revision: 513f591a4dac6a954981c9935942889a6bec1f18
Ancestor: 62c4d47ef2cfb0a38b3ea3d6583e82743ff22782
Author: nosnilmot at pidgin.im
Date: 2010-05-27T19:49:51
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/513f591a4dac6a954981c9935942889a6bec1f18

Modified files:
        pidgin/plugins/gevolution/gevolution.c

ChangeLog: 

Fix the "Send email" context menu option for gevolution so it actually works

-------------- next part --------------
============================================================
--- pidgin/plugins/gevolution/gevolution.c	33bd2910b6ca7f87a212b8023051cfef735c09a8
+++ pidgin/plugins/gevolution/gevolution.c	e046efeba8cae10643b9cf565e63589cc820cc91
@@ -227,12 +227,12 @@ menu_item_send_mail_activate_cb(PurpleBl
 		char *app = g_find_program_in_path("evolution");
 		if (app != NULL)
 		{
-			char *command_line = g_strdup_printf("%s mailto:%s", app, mail);
-			char *quoted = g_shell_quote(command_line);
+			char *quoted = g_shell_quote(mail);
+			char *command_line = g_strdup_printf("%s mailto:%s", app, quoted);
 			g_free(app);
 			g_free(mail);
 
-			g_spawn_command_line_async(quoted, NULL);
+			g_spawn_command_line_async(command_line, NULL);
 			g_free(command_line);
 			g_free(quoted);
 		}


More information about the Commits mailing list