changeset 30105:58fbaa661331

Fix the "Send email" context menu option for gevolution so it actually works
author Stu Tomlinson <stu@nosnilmot.com>
date Thu, 27 May 2010 19:49:51 +0000
parents 208641cbe979
children 6dbe83eee341
files pidgin/plugins/gevolution/gevolution.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/plugins/gevolution/gevolution.c	Thu May 27 19:45:20 2010 +0000
+++ b/pidgin/plugins/gevolution/gevolution.c	Thu May 27 19:49:51 2010 +0000
@@ -227,12 +227,12 @@
 		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);
 		}