diff --git a/.changes/shell-open-hang-windows.md b/.changes/shell-open-hang-windows.md new file mode 100644 index 000000000..e9c22c688 --- /dev/null +++ b/.changes/shell-open-hang-windows.md @@ -0,0 +1,6 @@ +--- +"shell": "patch" +"shell-js": "patch" +--- + +On Windows, Fix `open` JS API hanging and freezing the app. \ No newline at end of file diff --git a/plugins/shell/src/commands.rs b/plugins/shell/src/commands.rs index 7aac7b6c6..3345bb3a6 100644 --- a/plugins/shell/src/commands.rs +++ b/plugins/shell/src/commands.rs @@ -303,7 +303,7 @@ pub fn kill( } #[tauri::command] -pub fn open( +pub async fn open( _window: Window, shell: State<'_, Shell>, path: String,