mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-22 21:30:44 +02:00
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"shell": "patch"
|
||||||
|
---
|
||||||
|
|
||||||
|
Run `Command.execute()` JS api, asynchronously in the Rust side to avoid blocking main thread and causing the webview to freeze.
|
||||||
@@ -186,7 +186,7 @@ pub struct ChildProcessReturn {
|
|||||||
|
|
||||||
#[allow(clippy::too_many_arguments)]
|
#[allow(clippy::too_many_arguments)]
|
||||||
#[tauri::command]
|
#[tauri::command]
|
||||||
pub fn execute<R: Runtime>(
|
pub async fn execute<R: Runtime>(
|
||||||
window: Window<R>,
|
window: Window<R>,
|
||||||
program: String,
|
program: String,
|
||||||
args: ExecuteArgs,
|
args: ExecuteArgs,
|
||||||
|
|||||||
Reference in New Issue
Block a user