Skip to content

Improve WSL 2 support #4571

Description

@jankoprowski

What is the problem or limitation you are having?

Hello,

Under this issue I would like to track PRs improving WSL support in Toga.
Right now, after this simple PR #4572 Toga tests are runnable but they fail.

GTK 3

FAILED tests/app/test_desktop.py::test_current_window
FAILED tests/widgets/canvas/test_canvas.py::test_reset_transform
FAILED tests/window/test_window.py::test_focus_events[Window-second_window_kwargs0]

GTK 4

=========================== short test summary info ============================
FAILED tests/app/test_desktop.py::test_current_window
FAILED tests/widgets/canvas/test_canvas.py::test_reset_transform
FAILED tests/widgets/test_button.py::test_font
FAILED tests/widgets/test_button.py::test_focus
FAILED tests/widgets/test_label.py::test_font
FAILED tests/widgets/test_textinput.py::test_font
FAILED tests/window/test_window.py::test_visibility[Window-second_window_kwargs0]

I'm working on it.

Describe the solution you'd like

I think to find a ultimate WSL/WSLg setup to makes all Toga tests passes.

Describe alternatives you've considered

We can just ignore existence of WSL 2 and do not support it.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew features, or improvements to existing features.

    Projects

    Status
    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions