Skip to content

Commit

Permalink
santise path arguments to show_folder_in_finder tauri command (BloopA…
Browse files Browse the repository at this point in the history
  • Loading branch information
ggordonhall committed Sep 19, 2023
1 parent b0f2e31 commit 4ca999c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/desktop/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ fn disable_telemetry() {

#[tauri::command]
fn show_folder_in_finder(path: String) {
let path = PathBuf::from(path).canonicalize().unwrap();

#[cfg(target_os = "macos")]
{
std::process::Command::new("open")
Expand Down

0 comments on commit 4ca999c

Please sign in to comment.