This commit is contained in:
Rodrigo Estevao Rodrigues 2025-01-13 03:03:07 +01:00 committed by GitHub
commit bb84beadf5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 24 additions and 0 deletions

22
plugins/vcxsrv/README.md Normal file
View File

@ -0,0 +1,22 @@
# VcXsrv plugin
This plugin add the environment variables to allow graphic apps running on WSL
to find the VcXsrv instance intalled on Windows. It assumes that you have let
the VcXsrv configured with your local machine.
To use it, add `vcxsrv` to the plugins array in your zshrc file:
```zsh
plugins=(... vcxsrv)
```
## Requirements
In order to make this work, you will need to have the folowing softwares
installed:
* [WSL2](https://docs.microsoft.com/en-us/windows/wsl/);
* [VxXsrv](https://sourceforge.net/projects/vcxsrv/).
VcXsrv installed on Windows.
More info on the usage and install: https://github.com/direnv/direnv

View File

@ -0,0 +1,2 @@
export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0 # in WSL 2
export LIBGL_ALWAYS_INDIRECT=1