pidgin/plugins/gevolution/gevolution.c

changeset 18860
3d47d8b63f6a
parent 18190
bcf28ef7e8ff
child 19859
71d37b57eff2
equal deleted inserted replaced
18859:51fb2fb70196 18860:3d47d8b63f6a
225 { 225 {
226 char *app = g_find_program_in_path("evolution"); 226 char *app = g_find_program_in_path("evolution");
227 if (app != NULL) 227 if (app != NULL)
228 { 228 {
229 char *command_line = g_strdup_printf("%s mailto:%s", app, mail); 229 char *command_line = g_strdup_printf("%s mailto:%s", app, mail);
230 char *quoted = g_shell_quote(command_line);
230 g_free(app); 231 g_free(app);
231 g_free(mail); 232 g_free(mail);
232 233
233 g_spawn_command_line_async(command_line, NULL); 234 g_spawn_command_line_async(quoted, NULL);
234 g_free(command_line); 235 g_free(command_line);
236 g_free(quoted);
235 } 237 }
236 else 238 else
237 { 239 {
238 purple_notify_error(NULL, NULL, _("Unable to send e-mail"), 240 purple_notify_error(NULL, NULL, _("Unable to send e-mail"),
239 _("The evolution executable was not found in the PATH.")); 241 _("The evolution executable was not found in the PATH."));

mercurial