Skip to content

Commit 83d2e78

Browse files
author
Wojciech Napierała
committed
Add support for GUI environment detection on Windows
- Updated the `_is_gui_environment_configured` function to return True for Windows platforms, ensuring proper GUI support detection. - This change enhances compatibility for users operating in Windows environments.
1 parent af4c87e commit 83d2e78

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

gui/app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ def exec(self) -> int: # pragma: no cover - stub
207207

208208
def _is_gui_environment_configured() -> bool:
209209
"""Return True when the environment advertises GUI support."""
210+
if sys.platform.startswith("win"):
211+
return True
210212
if os.environ.get("QT_QPA_PLATFORM"):
211213
return True
212214
return any(os.environ.get(var) for var in ("DISPLAY", "WAYLAND_DISPLAY"))

0 commit comments

Comments
 (0)