plugins-workspace: [bug][v2] @tauri-apps/plugin-shell's open called twice while the Explorer is still open freezes the app

Describe the bug

WTTS, this happens on Windows only. The URL in question is a directory, not a file (for example: C:\Users\<user>\AppData\Roaming\<identifier>)

Here is a screencast:

https://github.com/tauri-apps/tauri/assets/1311607/5bb8aba7-40dd-4125-a944-23049824b093

Reproduction

From any Tauri UI, calls import { open } from '@tauri-apps/plugin-shell'; and try to open the same link twice.

When the Explorer is closed, the link works flawlessly. When the explorer is already opened, the app will freeze.

Expected behavior

No response

Full tauri info output

yarn run v1.22.19
$ tauri info

[✔] Environment
    - OS: Windows 10.0.22631 X64
    ✔ WebView2: 123.0.2420.65
    ✔ MSVC:
        - Visual Studio Build Tools 2019
        - Visual Studio Build Tools 2022
    ✔ rustc: 1.76.0 (07dca489a 2024-02-04)
    ✔ cargo: 1.76.0 (c84b36747 2024-01-18)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 20.11.1
    - yarn: 1.22.19
    - npm: 10.2.4

[-] Packages
    - tauri [RUST]: 2.0.0-beta.13
    - tauri-build [RUST]: 2.0.0-beta.10
    - wry [RUST]: 0.37.0
    - tao [RUST]: 0.26.1
    - @tauri-apps/api [NPM]: 2.0.0-beta.6
    - @tauri-apps/cli [NPM]: 2.0.0-beta.9

[-] App
    - build-type: bundle
    - CSP: default-src 'none'; img-src 'self' data:; media-src 'self' asset: https://asset.localhost http://asset.localhost; child-src 'self'; object-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; connect-src ipc: http://ipc.localhost 'self' https://api.github.com; font-src 'self' data:
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: React
    - bundler: Vite
Done in 8.04s.


### Stack trace

_No response_

### Additional context

_No response_

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (10 by maintainers)

Commits related to this issue

Most upvoted comments

PR is merged and released, run cargo update -p open in src-tauri

Nope, that one can be ignored, it’s just a consequence of closing the webview.