diff options
author | Canop <cano.petrole@gmail.com> | 2020-08-18 20:08:31 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2020-08-18 20:08:31 +0200 |
commit | f8b26f7533560ea575c4835baaab1c8a0bcdb8d9 (patch) | |
tree | 09b9a52defba696c2751c0ca6d41ef6135db47e5 /src/browser/browser_state.rs | |
parent | 9ccb5a397e2447b5dcd570621b9a23d89879b3fd (diff) |
setting the working dir of processes is now opt-in
This is defined with
set_working_dir = true
Diffstat (limited to 'src/browser/browser_state.rs')
-rw-r--r-- | src/browser/browser_state.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/browser/browser_state.rs b/src/browser/browser_state.rs index aaf9a02..88f8e74 100644 --- a/src/browser/browser_state.rs +++ b/src/browser/browser_state.rs @@ -215,7 +215,6 @@ fn make_opener( con: &AppContext, ) -> Result<AppStateCmdResult, ProgramError> { Ok(if is_exe { - let working_dir = path::closest_dir(&path); let path = path.to_string_lossy().to_string(); if let Some(export_path) = &con.launch_args.cmd_export_path { // broot was launched as br, we can launch the executable from the shell @@ -223,7 +222,10 @@ fn make_opener( writeln!(&f, "{}", path)?; AppStateCmdResult::Quit } else { - AppStateCmdResult::from(Launchable::program(vec![path], working_dir)?) + AppStateCmdResult::from(Launchable::program( + vec![path], + None, // we don't set the working directory + )?) } } else { AppStateCmdResult::from(Launchable::opener(path)) |