[nautilus-sendto] evolution: Fix command generation
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-sendto] evolution: Fix command generation
- Date: Wed, 11 Apr 2012 10:26:54 +0000 (UTC)
commit 554bfe5a1f890a412a1198741d96493b74c9f56a
Author: Bastien Nocera <hadess hadess net>
Date: Wed Apr 11 11:13:52 2012 +0100
evolution: Fix command generation
Since the GAppInfo move. %U needs to be transformed so it
can be "printed" properly.
Conflicts:
src/plugins/evolution/evolution.c
src/plugins/evolution/evolution.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/evolution/evolution.c b/src/plugins/evolution/evolution.c
index 245253f..a5642b7 100644
--- a/src/plugins/evolution/evolution.c
+++ b/src/plugins/evolution/evolution.c
@@ -101,6 +101,7 @@ static void
evolution_plugin_init (EvolutionPlugin *p)
{
GAppInfo *app_info;
+ char *needle;
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
@@ -141,6 +142,10 @@ evolution_plugin_init (EvolutionPlugin *p)
else if (strstr (p->mail_cmd, "anjal"))
p->type = MAILER_EVO;
}
+
+ /* Replace %U by %s */
+ while ((needle = g_strrstr (mail_cmd, "%U")) != NULL)
+ needle[1] = 's';
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]