This commit is contained in:
SpikeHD
2023-03-23 08:53:42 -07:00
parent 01d12178ba
commit 90b86b42d0
7 changed files with 11 additions and 14 deletions

View File

@@ -27,7 +27,7 @@ pub fn run_program_relative(path: String, args: Option<String>) {
open::that(format!("{} {}", &path, args.unwrap_or_else(|| "".into()))).unwrap_or(());
// Restore the original working directory
std::env::set_current_dir(&cwd).unwrap();
std::env::set_current_dir(cwd).unwrap();
}
#[tauri::command]
@@ -52,7 +52,7 @@ pub fn run_command(program: &str, args: Vec<&str>, relative: Option<bool>) {
cmd(prog, args).run().unwrap();
// Restore the original working directory
std::env::set_current_dir(&cwd).unwrap();
std::env::set_current_dir(cwd).unwrap();
});
}