summaryrefslogtreecommitdiff
path: root/src/components/mail/view/envelope.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/mail/view/envelope.rs')
-rw-r--r--src/components/mail/view/envelope.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/mail/view/envelope.rs b/src/components/mail/view/envelope.rs
index 9b810935..bb968459 100644
--- a/src/components/mail/view/envelope.rs
+++ b/src/components/mail/view/envelope.rs
@@ -403,13 +403,13 @@ impl Component for EnvelopeView {
None,
true,
);
- let (exec_cmd, argument) = super::desktop_exec_to_command(
+ let exec_cmd = super::desktop_exec_to_command(
&command,
p.path.display().to_string(),
false,
);
- match Command::new(&exec_cmd)
- .arg(&argument)
+ match Command::new("sh")
+ .args(&["-c", &exec_cmd])
.stdin(Stdio::piped())
.stdout(Stdio::piped())
.spawn()
@@ -421,8 +421,8 @@ impl Component for EnvelopeView {
Err(err) => {
context.replies.push_back(UIEvent::StatusEvent(
StatusEvent::DisplayMessage(format!(
- "Failed to start `{} {}`: {}",
- &exec_cmd, &argument, err
+ "Failed to start `{}`: {}",
+ &exec_cmd, err
)),
));
}