diff options
author | qkzk <qu3nt1n@gmail.com> | 2023-02-26 12:15:20 +0100 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2023-02-26 12:15:20 +0100 |
commit | dce565d0d7613967f71ea3aec961366e636eeca2 (patch) | |
tree | 9d545de85a883b55c7fafb9ff90c78fc73ddc823 /src/opener.rs | |
parent | ed7a644f233ecaffc32bc5b20a2fdd8f62c85019 (diff) |
read current terminal from env, if it doesn't exists use config one
Diffstat (limited to 'src/opener.rs')
-rw-r--r-- | src/opener.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/opener.rs b/src/opener.rs index 46d2fde..9e58de6 100644 --- a/src/opener.rs +++ b/src/opener.rs @@ -321,6 +321,7 @@ impl Opener { // TODO: use terminal specific parameters instead of -e for all terminals fn open_terminal(&self, mut args: Vec<&str>) -> FmResult<std::process::Child> { + info!("terminal: {}", self.terminal); args.insert(0, "-e"); execute_in_child(&self.terminal, &args) } @@ -334,10 +335,7 @@ impl Opener { /// Execute a command with options in a fork. /// Returns an handle to the child process. pub fn execute_in_child(exe: &str, args: &Vec<&str>) -> FmResult<std::process::Child> { - info!( - "execute_in_child. executable: {}, arguments: {:?}", - exe, args - ); + info!("execute_in_child. executable: {exe}, arguments: {args:?}",); Ok(Command::new(exe).args(args).spawn()?) } |