Skip to content

Commit

Permalink
fix: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
jianxingxuejian committed Jan 5, 2023
1 parent 0e54362 commit 1821761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-tauri/src/cmd/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub fn run_program(path: String, args: Option<String>) -> Result<String, Box<dyn
}

#[cfg(not(target_os = "windows"))]
pub fn run_program1(path: String, args: Option<String>) -> Result<String, Box<dyn Error>> {
pub fn run_program(path: String, args: Option<String>) -> Result<String, Box<dyn Error>> {
let cmd_str = format!("-c open {} {}", path, args.map_or("".to_string(), |s| s));
let output = Command::new("bash").arg(cmd_str).output()?;
return_output(output)
Expand Down

0 comments on commit 1821761

Please sign in to comment.