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

Windows Subsystem for Linux (WSL2) information does not cover WSLg #5353

Closed
MikeMcC399 opened this issue Jul 2, 2023 · 8 comments · Fixed by #5756
Closed

Windows Subsystem for Linux (WSL2) information does not cover WSLg #5353

MikeMcC399 opened this issue Jul 2, 2023 · 8 comments · Fixed by #5756
Labels
content: rewrite triaged Issue has been routed to backlog. This is not a commitment to have it prioritized by the team.

Comments

@MikeMcC399
Copy link
Contributor

Subject

Guides > References > Advanced Installation

Description

The Advanced Installation information section Windows Subsystem for Linux is outdated due to the release of Windows Subsystem for Linux GUI (WSLg).

This provides a GUI environment for WSL2 out-of-the-box.

Installation information for WSLg is available on

Existing WSL installations can be updated to use WSLg. New WSL installations automatically use WSLg.

Suggestion

Review this section. Probably major parts can be replaced.

@nagash77 nagash77 added the triaged Issue has been routed to backlog. This is not a commitment to have it prioritized by the team. label Jul 5, 2023
@MikeMcC399
Copy link
Contributor Author

In cypress-io/cypress#7065 (comment) @nagash77 wrote:

At this point in time Cypress does not officially support WSL/WSL2. I am going to close this until such time that we decide to fully support WSL/WSL2

This is not mentioned in the documentation https://docs.cypress.io/guides/references/advanced-installation#Windows-Subsystem-for-Linux

image

So a comment would be necessary here. Either explicitly saying it's not supported, or perhaps saying it's experimental. It depends whether you want to allow / encourage its use and whether you want to accept issues for this environment or not.

@NoxRammus
Copy link

NoxRammus commented Jul 13, 2023

While I have got it to work using WSLg, The configuration described in the documentation no longer works unless you add some additional configuration to your WSL instance telling WSL to not use WSLg and allowing you to use VcxSrv.

As far as I can tell you need to add the following to your wsl.conf but I havnt managed to get it working with VcxSrv myself, I did however come right with WSLg...

[wsl2]
guiApplications=false 

@elylucas elylucas removed their assignment Jul 31, 2023
@MikeMcC399
Copy link
Contributor Author

@NoxRammus

Is there any advantage to using VcXsrv instead of WSLg?

@NoxRammus
Copy link

@NoxRammus

Is there any advantage to using VcXsrv instead of WSLg?

None that I am aware of, I think the only benifit is IF there is another non-wsl based use that you have for the dedicated VcXsrv application so that you can use the same Xsrv application for both.

@MikeMcC399
Copy link
Contributor Author

@NoxRammus

Thanks for your feedback! So if Cypress decides it will support WSL2, then it would make sense to replace the information about VcXsrv with instructions for using WSLg.

@NoxRammus
Copy link

@MikeMcC399

Its a pleasure!

Yeah I think that makes sense.

If however it is decided not to support WSL2, I think a short note mentioning that it is possible but not maintained here (etc. etc.) should be added in its place.

There will almost definitally be a guide available online somewhere, but having incorrect configuration information on the official docs isnt great.

@MikeMcC399
Copy link
Contributor Author

Does the Cypress team have any feedback on this issue?

I would suggest completely removing the long description to setting up VcXsrv and replacing it by a one-liner referring instead to https://github.com/microsoft/wslg (WSLg).

Since WSL2 now comes with its own X11 server (WSLg) as standard there is no need for a long description of how to install an alternate X11 server VcXsrv in the Cypress documentation. https://github.com/microsoft/wslg/blob/main/README.md comprehensively documents what a user would need to do in order to use WSLg as X11 server in a Windows Subsystem for Linux (WSL2) environment.

@MikeMcC399
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content: rewrite triaged Issue has been routed to backlog. This is not a commitment to have it prioritized by the team.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants