diff --git a/src-tauri/src/system_helpers.rs b/src-tauri/src/system_helpers.rs index d3ed2e8..b316fca 100644 --- a/src-tauri/src/system_helpers.rs +++ b/src-tauri/src/system_helpers.rs @@ -4,8 +4,10 @@ use crate::file_helpers; #[tauri::command] pub fn run_program(path: String) { - // Open the program from the specified path. - open::that(&path).unwrap(); + // Open in new thread to prevent blocking. + thread::spawn(move || { + open::that(&path).unwrap(); + }); } #[tauri::command]