tauri-apps / plugins-workspace

All of the official Tauri plugins in one place!
https://tauri.app
Apache License 2.0
973 stars 273 forks source link

[feat] Remove UNC prefix from paths returned in public apis #1161

Closed tauri-bot closed 7 months ago

tauri-bot commented 7 months ago

This issue has been upstreamed from https://github.com/tauri-apps/tauri/issues/9407

Describe the problem

Currently our APIs (most of them moved to plugins i guess) still return UNC paths on Windows. For those unaware, those paths start with \\?\.

Most ecosystems seem to have problems with that, this includes the js frontend but also a multitude of sidecars. We've also already received reports about things built into Windows not being able to handle those.

Describe the solution you'd like

use dunce everywhere to safely remove the prefix. I doubt that this will cause any issues but even if, it'd be still less than the unc paths cause lol

Alternatives considered

do nothing and keep blaming the other languages' ecosystems for not being able to handle unc paths.

Additional context

No response

FabianLars commented 7 months ago

Fixed in https://github.com/tauri-apps/plugins-workspace/pull/1168