From d568556a4a1a211056efab10ca55a5a6631412b7 Mon Sep 17 00:00:00 2001 From: qkzk Date: Tue, 4 Apr 2023 23:49:33 +0200 Subject: basic shell execution with ! --- src/shell_menu.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/shell_menu.rs') diff --git a/src/shell_menu.rs b/src/shell_menu.rs index cbe32fc..4bb9932 100644 --- a/src/shell_menu.rs +++ b/src/shell_menu.rs @@ -52,12 +52,12 @@ impl ShellMenu { .directory_of_selected()? .to_str() .context("event_shell: couldn't parse the directory")?; - execute_in_child_without_output(&status.opener.terminal, &vec!["-d", path, "-e", command])?; + execute_in_child_without_output(&status.opener.terminal, &["-d", path, "-e", command])?; Ok(()) } fn simple(status: &Status, command: &str) -> Result<()> { - execute_in_child_without_output(&status.opener.terminal, &vec!["-e", command])?; + execute_in_child_without_output(&status.opener.terminal, &["-e", command])?; Ok(()) } -- cgit v1.2.3