Skip to content

fix(opener): avoid blocking-runtime panic in reveal_item_in_dir - #3565

Open
cyclone-mind wants to merge 1 commit into
tauri-apps:v2from
cyclone-mind:fix/opener-reveal-item-blocking-panic
Open

cyclone-mind wants to merge 1 commit into
tauri-apps:v2from
cyclone-mind:fix/opener-reveal-item-blocking-panic

Conversation

@cyclone-mind

Copy link
Copy Markdown

On Linux, reveal_items_in_dir opens a blocking zbus connection
(zbus::blocking::Connection::session()). The reveal_item_in_dir command runs
that synchronously on the async runtime's worker thread, which panics with
"Cannot start a runtime from within a runtime" — the JS promise then just hangs,
no rejection ever reaches the frontend.

Wrapped the call in tauri::async_runtime::spawn_blocking so it runs off the
async worker thread. Same fix the issue reporter already confirmed works as an
app-side workaround, just moved into the plugin so nobody has to hand-roll it.

Fixes #3552

Verified with cargo check / cargo fmt --check / cargo clippy on the opener
crate — all clean. Don't have a Linux box handy to reproduce the actual panic,
but the change is a direct port of the reporter's verified workaround.

Added a .changes entry per the repo's covector convention.

@cyclone-mind
cyclone-mind requested a review from a team as a code owner September 1, 2026 09:23
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Package Changes Through 8022336

There are 2 changes which include opener with patch, opener-js with patch

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
api-example 2.0.47 2.0.48
api-example-js 2.0.43 2.0.44
opener 2.5.5 2.5.6
opener-js 2.5.5 2.5.6

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug][opener] revealItemInDir panics on Linux: blocking zbus connection inside the async command ('Cannot start a runtime from within a runtime')

2 participants