Skip to content

[Feature]: Add wslg capability #1464

Open

Description

@GuillaumeSavin

Before submitting

  • I have searched existing feature requests and discussions to confirm this has not been requested

Problem or motivation

When I used devsy with wsl, I try to mount X11 socket in devcontainer but I need env variable of DISPLAY so dev container know which display to use. Problem is (if it work as I think) as it work now, the shell that devsy used to create container, connection, etc... don't have this variable so just adding in devcontainer.json 's devcontainerEnv key don't work...

Proposed solution

Be able to access all env variable from wsl shell (like DISPLAY, WAYLAND_DISPLAY), maybe using wsl command line to get them ? Or instead of ssh use wsl as wrapper for all command ?
ANother propostion regardless of the solution/implementation choosed, add an option for display env variable injection like the existing ones (SSh, docker credentials, etc....)

Alternatives considered

Manually write once and for all the display variable but can break easily if it changes

Area

Providers

Acceptance criteria

-[]: User can inject their wsl DISPLAY variables through devcontainer.json and/or docker-compose file
-[]: When launching a simple GUI app through devcontainer with the right packages and socket, it should open as a windows GUI program.
-[]: (Optionnal) Add an option like SSH and docker credential to inject DISPLAY and WAYLAND_DISPLAY variable in devcontainer

Additional context

No response

Activity

  1. skevetter commented on Oct 12, 2026

    @skevetter
    Contributor

    Notes for me for later: WSLG https://github.com/microsoft/wslg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions