Windows X Server (X11
)
Allows GUI apps installed at a session host (WSL distro) to launch as a client GUI app (at Windows).
Setup @ ~/.bashrc
export DISPLAY=:0
Apps
VcXsrv
choco install vcxsrv -y
Settings for X-Server auto-launch. Copy/paste into shortcut for GUI use, or script (
.cmd
|.bat
) for CLI use."%ProgramFiles%\VcXsrv\vcxsrv.exe" :0 -ac +bs -reset -terminate -dpi auto -render color -lesspointer -multiwindow -multimonitors +xinerama -clipboard -emulate3buttons -hostintitle -keyhook -wgl -swrastwgl -winkill
Running the X-Server fixes
xclip
issue @ WSL; otherwisexclip
fails @putclip()
; creates file "xclip -i -f -silent -selection clipboard
" @PWD
; seeputclip()
function @~/.bash_functions
.@ Linux, may also want install
xclip
.