mirror of https://github.com/djcb/mu.git
* mu: shell-quote rather than escape with --exec
This commit is contained in:
parent
92be7368c8
commit
d3122a8927
|
@ -144,7 +144,7 @@ exec_cmd (MuMsg *msg, MuMsgIter *iter, MuConfig *opts, GError **err)
|
|||
char *cmdline, *escpath;
|
||||
gboolean rv;
|
||||
|
||||
escpath = g_strescape (mu_msg_get_path (msg), NULL);
|
||||
escpath = g_shell_quote (mu_msg_get_path (msg));
|
||||
cmdline = g_strdup_printf ("%s %s", opts->exec, escpath);
|
||||
|
||||
rv = g_spawn_command_line_sync (cmdline, NULL, NULL, &status, err);
|
||||
|
|
Loading…
Reference in New Issue