Skip to content

Commit

Permalink
Add open project folder in linux native app
Browse files Browse the repository at this point in the history
  • Loading branch information
me-mariosteve committed Aug 18, 2023
1 parent 5ee35bb commit cf82b93
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src-tauri/src/fs_extra.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ pub async fn reveal_in_file_explorer(path: &str) -> Result<(), String> {
.spawn()
.expect("Failed to open finder");
} else {
// TODO: Linux
Command::new("xdg-open")
.args([path])
.spawn()
.expect("Failed to open file explorer");
}

Ok(())
Expand Down

0 comments on commit cf82b93

Please sign in to comment.