diff options
author | qkzk <qu3nt1n@gmail.com> | 2022-12-12 21:21:53 +0100 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2022-12-12 21:21:53 +0100 |
commit | e53abd2322d1be84a5c3399c0ffb81f13b62bd80 (patch) | |
tree | 2deb04c2140db40c8a767485f52c48fdd7ada496 /src/opener.rs | |
parent | 5fca8eb8d9c735b6851ade3fadea8da50df49d11 (diff) |
fix decompress
Diffstat (limited to 'src/opener.rs')
-rw-r--r-- | src/opener.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/opener.rs b/src/opener.rs index df32587..6bc8ad0 100644 --- a/src/opener.rs +++ b/src/opener.rs @@ -149,7 +149,7 @@ impl OpenerInfo { #[derive(Clone)] pub struct Opener { - terminal: String, + pub terminal: String, pub opener_association: OpenerAssociation, default_opener: OpenerInfo, } @@ -231,6 +231,10 @@ impl Opener { pub fn get(&self, kind: ExtensionKind) -> Option<&OpenerInfo> { self.opener_association.association.get(&kind) } + + pub fn open_terminal_with_args(&self, args: Vec<&str>) -> FmResult<std::process::Child> { + execute_in_child(&self.terminal, &args) + } } /// Execute the command in a fork. |