Skip to content

Conversation

@runoneall
Copy link

This is my modified version of forward.go, integrated into my own project.

https://github.com/runoneall/nodebus/blob/main/fns/X11Forward.go

I modified the X11 forwarding section to work on Windows, and it's proven to work.

You might also want to check out my blog post (in Chinese).

https://oneall.eu.org/2025/10/06/%E5%A6%82%E4%BD%95%E5%9C%A8Windows%E4%B8%8A%E5%AE%9E%E7%8E%B0X11-Forwarding%EF%BC%9F/

In short, there's no Xauth software on Windows, so you must specify "ForwardX11Trusted" to be true and manually create an empty .Xauthority file.

Next, set the environment variable "DISPLAY" to the address of VcXsrv, and X11 forwarding will work properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant