Skip to content

Instantly share code, notes, and snippets.

@yawnston
Created September 21, 2020 20:53
Show Gist options
  • Save yawnston/cdbce9f8f9e8617a947a49eecddc5718 to your computer and use it in GitHub Desktop.
Save yawnston/cdbce9f8f9e8617a947a49eecddc5718 to your computer and use it in GitHub Desktop.
Launch WSL2 X server + WM
' This script is meant to be launched from the Windows side, to start up a decorationless
' VcXsrv container for the environment.
Set vcxsrvShell = CreateObject("WScript.Shell")
vcxsrvShell.Run """C:\Program Files\VcXsrv\vcxsrv.exe"" -nodecoration -wgl -ac -clipboard -lesspointer"
Set vcxsrvShell = Nothing
Set wslShell = CreateObject("WScript.Shell")
wslShell.Run "wsl ~/.scripts/wlaunch", 0
Set wslShell = Nothing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment