Last active
June 29, 2022 21:34
-
-
Save abenezeradane/408d4b5f14921500ca412c9beab6d116 to your computer and use it in GitHub Desktop.
Setting DISPLAY environmental variable for VcXsrv Windows X Server to work
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Export DISPLAY to VcXsrv Windows X Server | |
| export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0 | |
| echo "Updated Display: ${DISPLAY}" | |
| exit 0 | |
| #SHELL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment