You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Activity
skevetter commentedon Oct 12, 2026
Notes for me for later: WSLG https://github.com/microsoft/wslg