[nautilus-sendto/gnome-3-0] evolution: Fix command generation
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-sendto/gnome-3-0] evolution: Fix command generation
- Date: Wed, 11 Apr 2012 10:26:49 +0000 (UTC)
commit a3449cc91846792543abc80266fd42eebfe6bb6a
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.
src/plugins/evolution/evolution.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/evolution/evolution.c b/src/plugins/evolution/evolution.c
index e8679a6..c52e49e 100644
--- a/src/plugins/evolution/evolution.c
+++ b/src/plugins/evolution/evolution.c
@@ -59,7 +59,6 @@ get_evo_cmd (void)
NULL};
guint i;
-
for (i = 0; cmds[i] != NULL; i++) {
tmp = g_find_program_in_path (cmds[i]);
if (tmp != NULL)
@@ -78,9 +77,10 @@ static gboolean
init (NstPlugin *plugin)
{
GAppInfo *app_info;
+ char *needle;
g_print ("Init evolution plugin\n");
-
+
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
@@ -120,6 +120,10 @@ init (NstPlugin *plugin)
if (mail_cmd == NULL)
return FALSE;
+ /* Replace %U by %s */
+ while ((needle = g_strrstr (mail_cmd, "%U")) != NULL)
+ needle[1] = 's';
+
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]