emacs-wsl icon indicating copy to clipboard operation
emacs-wsl copied to clipboard

Replace VcXsrv with WSLg once it is available without Insider Program (WSL 2 only)

Open hubisan opened this issue 3 years ago • 1 comments

Remark: Can't test this unless Windows 10 supports WSLg as unfortunately upgrading to Windows 11 would make Office 2013 not work anymore :-(

Once WSLg (https://github.com/microsoft/wslg) is available, there is no need for VcXsrv as it enables you to run Linux GUI applications (X11 and Wayland). Its goal is to make Linux GUI applications feel native and natural to use on Windows.

Only works with WSL 2. This probably also make those annoying firewall rules a thing of the past.

From its README:

WSLg is short for Windows Subsystem for Linux GUI and the purpose of the project is to enable support for running Linux GUI applications (X11 and Wayland) on Windows in a fully integrated desktop experience. ... WSLg strives to make Linux GUI applications feel native and natural to use on Windows. From integration into the Start Menu for launch to appearing in the task bar, alt-tab experience to enabling cut/paste across Windows and Linux applications, WSLg enables a seamless desktop experience and workflow leveraging Windows and Linux applications. ...

Pre-requisites

  • Windows 11 (build 22000.*) or Windows 11 Insider Preview (builds 21362+)

    • WSLg is going to be generally available alongside the upcoming release of Windows. To get access to a preview of WSLg, you'll need to join the Windows Insider Program and be running a Windows 11 Insider Preview build from the beta or dev channels.

hubisan avatar Aug 03 '21 19:08 hubisan

Added a remark in the readme about using WSLg when having Windows 11. Still want to add full instructions once I can use it.

hubisan avatar Jul 18 '22 21:07 hubisan

WSLg is now available for Windows 10 as well. Will see if i get this to work in February 2023.

hubisan avatar Dec 07 '22 09:12 hubisan

Closing as PR #60 has been merged.

hubisan avatar Dec 14 '23 16:12 hubisan