mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-10-20 23:11:24 +02:00
fix(opener): avoid blocking-runtime panic in reveal_item_in_dir (#3565)
* fix(opener): avoid blocking-runtime panic in reveal_item_in_dir * fix(opener): run zbus reveal on a dedicated thread for all callers Move the runtime-panic fix into the Linux/BSD implementation so the public Rust APIs are covered too, not just the JS command, and propagate the spawn_blocking join error via the existing Tauri error variant. --------- Co-authored-by: Lucas Nogueira <lucas@tauri.app>
This commit is contained in:
1 parent
0e17675653
commit
1ab930465f
3 files changed
+19
-1
No files matched your search
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"opener": "patch"
|
||||
"opener-js": "patch"
|
||||
---
|
||||
|
||||
Fixed `revealItemInDir` and the `reveal_item_in_dir` / `reveal_items_in_dir` Rust APIs panicking on Linux and the BSDs with `Cannot start a runtime from within a runtime` when zbus is built with its `tokio` feature and the call happens inside an async runtime. The blocking D-Bus calls now run on a dedicated thread.
|
||||
Reference in new issue
Block a user