Electron Switched To Wayland.
How Electron Went Wayland-Native, And What It Means For Your Apps.
When Electron switched to Wayland on Linux last fall, most people didn't notice.
Wayland is supported out of the box in Electron 38.2 and newer. As long as your apps are up-to-date, it just works. (If you were previously launching your Electron apps with very long commands like CONFUSINGOZONEVARIABLE —ozone-platform=wayland, you no longer need to do that.)
Major Linux distributions adopted the modern display protocol years ago, and both the KDE Plasma and GNOME desktop environments are in the process of dropping X11 support completely.
But a platform migration isn't complete without apps, and a large part of the Linux app ecosystem went through a second Wayland transition last August — well after most distros had changed their defaults. That's when Chromium turned on Wayland by default, bringing Electron and dozens of Linux desktop apps along with it.