-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[bug] api/dialog/dialogOpen parameter defaultPath does not work on Windows with slash separators #8074
Labels
Comments
can you assign this bug to me. |
Any update here? This should be a very easy fix. |
amrbashir
added a commit
that referenced
this issue
Dec 15, 2023
amrbashir
added a commit
to tauri-apps/plugins-workspace
that referenced
this issue
Dec 15, 2023
lucasfernog
pushed a commit
to tauri-apps/plugins-workspace
that referenced
this issue
Dec 19, 2023
* fix(core/dialog): reconstruct path using appropriate separator ref: tauri-apps/tauri#8074 * Reference original issue [skip ci]
Thanks for the fix, can it be backported to v1? |
That already happened. just waiting for the next v1 patch |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
Describe the bug
When calling dialogOpen, defaultPath parameter is supposed to specify which folder will be opened initially.
On windows it works only if backslash is used as path separator, if a forward slash is used then the parameter is ignored.
I realize this is likely a limitation of winapi but it looks like something that is very easy to fix in rust side of the api. Yes, it can be worked around in javascript side but I think Tauri should take care of it since this is both undocumented and not obvious to rootcause when troubleshooting.
Reproduction
This works
This does not
and will open the last used directory or current working directory
Expected behavior
dialogOpen should work with both "\" and "/" on windows
Platform and versions
Stack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: