fix Linux file open picker with space#22978
Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes Linux (Skia X11) file picker/save picker results so that paths returned from xdg-desktop-portal file URIs are properly decoded (e.g., %20 → space), preventing failures when opening selected files.
Changes:
- Decode portal-returned
file://URIs usingUri.LocalPath(instead ofAbsolutePath) in the X11 open/save picker implementations. - Add a runtime test verifying that a
StorageFileopened from a path containing spaces returns the expected content.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/Uno.UI.RuntimeTests/Tests/Windows_Storage/Given_StorageFile.cs | Adds a regression test for opening a file whose path contains spaces. |
| src/Uno.UI.Runtime.Skia.X11/Storage/Pickers/LinuxFileSaverExtension.cs | Switches URI-to-path conversion to LocalPath to properly decode %20. |
| src/Uno.UI.Runtime.Skia.X11/Storage/Pickers/LinuxFilePickerExtension.cs | Switches URI-to-path conversion to LocalPath for multi/single selection results. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22978/wasm-skia-net9/index.html |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22978/wasm-skia-net9/index.html |
|
The build 205991 found UI Test snapshots differences: Details
|
|
|
|
The build 205991 found UI Test snapshots differences: Details
|
|
The build 205991 found UI Test snapshots differences: Details
|
3b0719f to
e6133e8
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22978/wasm-skia-net9/index.html |
|
|
GitHub Issue: closes #22751
PR Type:
What is the current behavior? 🤔
What is the new behavior? 🚀
PR Checklist ✅
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Runresults.Other information ℹ️