summaryrefslogtreecommitdiffstats
path: root/src/opener.rs
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2023-04-12 23:03:01 +0200
committerqkzk <qu3nt1n@gmail.com>2023-04-12 23:03:01 +0200
commitadd7199f593f63273480414b6950326b16f7c8cd (patch)
treef98da4a14833d1261419c15305a398ed91c79d1f /src/opener.rs
parent99c4b33276016b3fcadf5e1d8761b985ae70056d (diff)
simplify and unify sudo commands and normal commands. Pass a path to sudo command.
Diffstat (limited to 'src/opener.rs')
-rw-r--r--src/opener.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/opener.rs b/src/opener.rs
index 0e47216..fe18f4a 100644
--- a/src/opener.rs
+++ b/src/opener.rs
@@ -412,12 +412,13 @@ pub fn execute_in_child_without_output<S: AsRef<std::ffi::OsStr> + fmt::Debug>(
.spawn()?)
}
-pub fn execute_in_child_without_output_with_path<S: AsRef<std::ffi::OsStr> + fmt::Debug, P>(
+pub fn execute_in_child_without_output_with_path<S, P>(
exe: S,
path: P,
args: Option<&[&str]>,
) -> Result<std::process::Child>
where
+ S: AsRef<std::ffi::OsStr> + fmt::Debug,
P: AsRef<Path>,
{
info!("execute_in_child_without_output_with_path. executable: {exe:?}, arguments: {args:?}");