Open Keilo75 opened 1 year ago
That's the expected behaviour.
Shell open with a folder would open a shell at that path most of the time.
Depending on the platform you must use explorer
(win), open
(mac), xdg_open
and variant on linux.
There is a crate that wraps it for you: opener
Should be fixed once https://github.com/tauri-apps/tauri/pull/6441 is merged
Describe the bug
When using the
shell.open
javascript API, folders are not correctly opened on Windows 10 if they have spaces in the path. Depending on the formatting of the path, several things may happen, as shown in the screenshot below:The command line window looks like this: The error dialog looks like this (apologies for the German, basically says that 'Files' cannot be found): The console displays the following error message upon closing the dialog:
No file explorer is ever opened though.
Reproduction
This repository demonstrates the bug: https://github.com/Keilo75/shell-open-bug-mre
npm install
npm run tauri dev
Expected behavior
The file explorer opens with the given path, as described in https://tauri.app/v1/api/js/shell/.
Platform and versions
Stack trace
No response
Additional context
No response