diff options
author | Bastien Nocera <hadess@hadess.net> | 2012-04-11 11:13:52 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2012-04-11 11:13:52 +0100 |
commit | a3449cc91846792543abc80266fd42eebfe6bb6a (patch) | |
tree | 9648c4c9b76a87badee491b6768cb202e473562f | |
parent | af1c29b37ebff294c6c12fe574fada7b70202022 (diff) | |
download | nautilus-sendto-a3449cc91846792543abc80266fd42eebfe6bb6a.tar.gz |
evolution: Fix command generation
Since the GAppInfo move. %U needs to be transformed so it
can be "printed" properly.
-rw-r--r-- | 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; } |