-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] __TAURI__.os.tempdir()
API regression: broken in windows after latest Tauri update
#10285
Comments
NB: The tests are failing in clean builds in github actions as well with latest tauri Exact error log line: https://github.com/phcode-dev/phoenix-desktop/actions/runs/9762153481/job/27052280845?pr=461#step:9:1655 |
Caused by #9588 |
Hmm, technically i guess we could also let this count as a bug fix because most other apis should return paths with the @amrbashir What's your opinion? |
let's use dunce on that API only, to revert and fix the breaking behavior. Any consistency changes that requires breaking changes should be made to v2 only. |
coolio, expected that answer but wanted to double check |
@FabianLars why? is EDIT: oh my god |
Yes it is a valid path. Search for UNC paths to learn more. That said, it's not really desirable as many tools can't handle them. Tauri's apis return UNC paths because Rust's apis do and since it'd be a breaking change to not return UNC paths (basically this gh issue but the other way around), we can only change it in v2 (and did so) |
Describe the bug
In Windows OS,
window.__TAURI__.os.tempdir()
API is broken. It returns invalid path:. It is easily reproduicable directly in the browser console. Here is the console output:Notice the
\\\\?\\
prefix which was not coming in earlier.Background: We were investigating integ test failures on updating to latest tauri builds in this pr: phcode-dev/phoenix-desktop#461
@tauri-apps/cli 1.5.14 -> 1.6.0
tauri 1.6.8 -> 1.7.1
tauri-build 1.5.2 -> 1.5.3
Reproduction
It is easily reproduicable directly in the browser console. Here is the console output:
Expected behavior
The path returned should be of the form:
C:\\Users\\home\\AppData\\Local\\Temp
Full
tauri info
outputStack trace
No response
Additional context
Maybe related to? #10272
The text was updated successfully, but these errors were encountered: