Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Windows WSL2 instructions for Windows 11 #8512

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jaredscarr
Copy link
Contributor

@jaredscarr jaredscarr commented Feb 19, 2024

Background

I noticed that when I went through this setup last month the instruction for setting the DISPLAY variable did not work for my version of Windows and WSL2.

Through this source it seems that the DISPLAY variable will work out of the box for Windows 11 users with a fresh install or properly updated version as described in this Microsot Tutorial

Tested on Windows 11 Home Build 22631

WSL version: 2.0.14.0
Kernel version: 5.15.133.1-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22631.3155

Change List

  • CONTRIBUTING.md

@felixpalmer
Copy link
Collaborator

Thanks for the fix. I'm not able to test this myself, if somebody could confirm this works, I'm happy to merge

export DISPLAY=$(grep -m 1 nameserver /etc/resolv.conf | awk '{print $2}'):0.0
# WSL 2 + Windows 11
echo $DISPLAY
# if result of above command is NOT ":0"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this necessary? Just set the environment variable anyways?

@Pessimistress Pessimistress force-pushed the master branch 4 times, most recently from 0a083b6 to eb85da3 Compare April 25, 2024 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants