Fix Windows path issues

This commit is contained in:
Brian Bowman
2022-07-02 00:17:30 -05:00
parent 241b2b07bd
commit f6b80e1fac
4 changed files with 26 additions and 24 deletions

View File

@@ -17,9 +17,8 @@ pub fn run_program(path: String) {
}
#[tauri::command]
pub fn run_command(command: String) {
// Run the specified command.
cmd!(command).run()
pub fn run_command(program: &str, args: Vec<&str>) {
cmd(program, args).run()
.expect("Failed to run command");
}