mirror of
https://github.com/cascadium/wsl-windows-toolbar-launcher.git
synced 2026-04-27 05:25:50 +03:00
[GH-ISSUE #33] Not being able to access X server without mods #32
Labels
No labels
duplicate
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/wsl-windows-toolbar-launcher#32
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @thjwong on GitHub (Feb 1, 2021).
Original GitHub issue: https://github.com/cascadium/wsl-windows-toolbar-launcher/issues/33
All applications except the terminal applications were not able to access the X server (VcXsrv):
I have to add the following code to the .bat files before calling the wsl.exe in order to make them work:
@fquinner commented on GitHub (Feb 2, 2021):
If x forwarding is not working, it's most likely a firewall or addressing issue. What you're doing there is connecting to X through your wireless interface's IP (which is likely a private network as opposed to WSL which for some random reason is registered as a "public" network and therefore has different firewall rules).
It's a common shortcut that a lot of people end up taking, but ultimately it shouldn't be required. You could also do the same thing in .bashrc if you like without having to modify the
.batfiles which could be a little easier to manage going forward if you really wanted to go down this road.Setting an appropriate
.bashrcand ensuring the firewall rule updates as documented here should be enough to get up and running.