desktop: move open_path to rust (#15323)

This commit is contained in:
Brendan Allan
2026-02-27 14:17:24 +08:00
committed by GitHub
parent 2a4ed49551
commit 0da8af8a28
3 changed files with 23 additions and 29 deletions

View File

@@ -18,7 +18,7 @@ export const commands = {
checkAppExists: (appName: string) => __TAURI_INVOKE<boolean>("check_app_exists", { appName }),
wslPath: (path: string, mode: "windows" | "linux" | null) => __TAURI_INVOKE<string>("wsl_path", { path, mode }),
resolveAppPath: (appName: string) => __TAURI_INVOKE<string | null>("resolve_app_path", { appName }),
openInPowershell: (path: string) => __TAURI_INVOKE<null>("open_in_powershell", { path }),
openPath: (path: string, appName: string | null) => __TAURI_INVOKE<null>("open_path", { path, appName }),
};
/** Events */