-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Wayland support on Linux #20891
Comments
After installing a new version of the system (Ubuntu), I debugged the problem of firing Cypress (white screen on very early cypress loading stage) for about two weeks. Starting from Docker networking issues, to a GPU hardware acceleration problem, to a Linux switch from X server to Wayland. I believe this issue will finally be resolved by the Cypress team. However, for those who have reached this place - the temporary solution is to disable Wayland. To do this, uncomment the line |
Can you elaborate a bit what pieces are missing? I've tried to start it like this: |
if it's chromium, using the |
When starting cypress, the initial testing-types-runner window also launches under Xwayland since it's an Electron app. So, if testing with Firefox, running xlsclients lists both 'Cypress' and 'firefox'; this is the problem that this issue is really about, since it should not be necessary to use Xwayland for any runner/browser combo at this point in time. When cypress launches, it ends up spawning a binary and passes arguments to it, some of those arguments are for Electron. So the fix for this issue can be made with one line, which will stop both the runner and browser from launching under Xwayland, and maybe fix all browsers. In the
To this:
With this change xlsclients does not list any Cypress process, and the browsers are also launched correctly under Wayland. Maybe this can probably be done with config files too, but I didn't look in to that. Edit: changed where to add flag for simplicity. |
The right flag actually might be this: Footnotes |
I tested |
is there a way to do this using cypress in a container? |
Reopening as we had to revert this PR due to failing when running on our linux inary |
I have a PR that is going to attempt to build the binary with |
I have binaries built for the update. @azvyae or anyone else able to verify they work with wayland? f0a7e2a. Looks like @switchyrascal confirms this works as well |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Unfortunately we had to back out this change as it was causing some issue for users in Ubuntu that were preventing running Cypress. PR to back out: #30179 We will not have Wayland support in Cypress 13.14.1 and would have to re-evalute how to address this more broadly. This is not currently on our roadmap of work however. |
What would you like?
It would be great to have Cypress run natively with Wayland (npx cypress open) instead of using xfvb/X11/Xwayland.
Why is this needed?
This is required for HiDPI monitors and fractional scaling on Linux machines. This is currently only supported with Wayland for Linux, and running Cypress with Xwayland leads to a very blurry experience on a 4K monitor.
Other
Here's a screenshot attempting to show the issue, top right is a FF window under Wayland which has crisper text, the other two Cypress windows are running under Xwayland and are blurry.
The text was updated successfully, but these errors were encountered: