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:
shouyuandLucas Nogueira authored and GitHub committed 2026-10-13 14:44:22 -03:00
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.