summaryrefslogtreecommitdiffstats
path: root/src/app
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2022-06-15 14:47:08 +0200
committerCanop <cano.petrole@gmail.com>2022-06-15 14:47:08 +0200
commitaabc38a9fe5b6f8a60105a2878f71f8424d22ce9 (patch)
treef4506912693d57668410bbef2efc94b029a492f8 /src/app
parent282fbc584554bc7db4d06e603cd05961ee2f060f (diff)
fix accidently changed launch argument name
Diffstat (limited to 'src/app')
-rw-r--r--src/app/app_context.rs2
-rw-r--r--src/app/selection.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/app/app_context.rs b/src/app/app_context.rs
index d3424e3..038da18 100644
--- a/src/app/app_context.rs
+++ b/src/app/app_context.rs
@@ -222,7 +222,7 @@ fn canonicalize_root(root: &Path) -> io::Result<PathBuf> {
#[cfg(windows)]
fn canonicalize_root(root: &Path) -> io::Result<PathBuf> {
Ok(if root.is_relative() {
- env::current_dir()?.join(root)
+ std::env::current_dir()?.join(root)
} else {
root.to_path_buf()
})
diff --git a/src/app/selection.rs b/src/app/selection.rs
index 7eabbf7..0275836 100644
--- a/src/app/selection.rs
+++ b/src/app/selection.rs
@@ -77,7 +77,7 @@ impl Selection<'_> {
) -> Result<CmdResult, ProgramError> {
Ok(if self.is_exe {
let path = self.path.to_string_lossy().to_string();
- if let Some(export_path) = &con.launch_args.cmd_export_path {
+ if let Some(export_path) = &con.launch_args.outcmd {
// broot was launched as br, we can launch the executable from the shell
let f = OpenOptions::new().append(true).open(export_path)?;
writeln!(&f, "{}", path)?;