godotengine / godotengine/godot

Show library when call `DisplayServer.file_dialog_show` in Windows 11

Open
#112,749 4 comments 0 reactions 0 assignees View on GitHub
needs testing needs work
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

v4.5.1.stable.official [f62fdbde1]

### System information

Godot v4.5.1.stable - Windows 11 (build 22631) - Multi-window, 1 monitor - OpenGL 3 (Compatibility) - NVIDIA GeForce RTX 4070 SUPER (NVIDIA; 32.0.15.6109) - 13th Gen Intel(R) Core(TM) i5-13600KF (20 threads) - 63.83 GiB memory

### Issue description

```
var home_path: String = OS.get_environment("USERPROFILE")
DisplayServer.file_dialog_show("open folder", home_path.path_join("Music"), "", false, DisplayServer.FILE_DIALOG_MODE_OPEN_DIR, [], func(): pass)
```
It shows the library, and I can't select the folder.

Image

### Steps to reproduce

run code

### Minimal reproduction project (MRP)

[test.zip](https://github.com/user-attachments/files/23539403/test.zip)

Contributor guide

Open the contributing guide

Research direction

Start with the attached minimal reproduction project and the Windows implementation behind DisplayServer.file_dialog_show. Run the provided code on Windows 11 to confirm that the Music path opens the library view and cannot be selected. Done means the folder dialog opens at the requested path and allows that folder to be selected.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.