-
Notifications
You must be signed in to change notification settings - Fork 421
Open
Labels
area-File accessTopics related to Microsoft.Windows.Storage.Pickers APIs for selecting files/folders etc.Topics related to Microsoft.Windows.Storage.Pickers APIs for selecting files/folders etc.needs-triage
Description
Describe the bug
FolderPicker (Microsoft.Windows.Storage.Pickers.FolderPicker) does not show WSL (Windows Subsystem for Linux) folders/locations, while FileOpenPicker does show them correctly under the same conditions.
Steps to reproduce the bug
Prerequisites: WSL is enabled and at least one Linux distribution is installed. WSL folders (e.g., \\wsl$\Ubuntu) are visible in Windows Explorer.
- Launch an app using
Microsoft.Windows.Storage.Pickers.FolderPicker(e.g., the StoragePickers sample) - Click "Pick Single Folder" to open the FolderPicker dialog
- Observe: WSL locations (e.g.,
\\wsl$\Ubuntu) are not shown in the navigation pane or anywhere in the dialog
Contrast with FileOpenPicker:
- In the same app, use
FileOpenPicker→ click "Pick Single File" - Observe: WSL locations are shown and files inside WSL folders can be browsed and picked
Additional interesting behavior (transient visibility):
- First, use
FileOpenPickerto navigate into a WSL folder and pick any file (e.g.,\\wsl$\Ubuntu\home\user\somefile.txt) - Immediately after, open
FolderPickeragain - Observe: This one time, WSL folders are temporarily visible in the FolderPicker
- Close the FolderPicker (pick a folder or cancel), then open
FolderPickeragain - Observe: WSL folders have disappeared again, even though the picker's remembered path (from last use) still points to a WSL location
Expected behavior
FolderPicker should show WSL locations consistently, the same way FileOpenPicker does, matching the behavior of Windows Explorer.
Screenshots
N/A
NuGet package version
Microsoft.WindowsAppSDK 1.8.250916003
Windows version
Windows 11
Additional context
- The
FileOpenPickerconsistently shows WSL folders — this is aFolderPicker-only issue. - The transient visibility after using
FileOpenPickerin a WSL path suggests the dialog may be caching or inheriting some navigation state, but failing to enumerate WSL locations on its own. - WSL folders appear as network locations (
\\wsl$\...) in Windows Explorer, so this may be related to howFolderPickerenumerates network/virtual shell locations differently fromFileOpenPicker.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-File accessTopics related to Microsoft.Windows.Storage.Pickers APIs for selecting files/folders etc.Topics related to Microsoft.Windows.Storage.Pickers APIs for selecting files/folders etc.needs-triage