Closed abose closed 1 month ago
NB: The tests are failing in clean builds in github actions as well with latest tauri see: https://github.com/phcode-dev/phoenix-desktop/pull/461
Exact error log line: https://github.com/phcode-dev/phoenix-desktop/actions/runs/9762153481/job/27052280845?pr=461#step:9:1655
Hmm, technically i guess we could also let this count as a bug fix because most other apis should return paths with the //?/
prefix. I'm really only considering this because i don't like the inconsistency.
@amrbashir What's your opinion? Simply revert this single function? Leave it as is to match the other functions? Add dunce everywhere like in v2 in a patch?
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
because most other apis should return paths with the
//?/
prefix.
@FabianLars why? is \?C:\a\b\c
a valid path on windows? why is that prefix desireable?
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: https://github.com/phcode-dev/phoenix-desktop/pull/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? https://github.com/tauri-apps/tauri/issues/10272