joelspadin / vscode-remote-x11

Visual Studio Code extension that sets the DISPLAY environment variable in remote workspaces
39 stars 9 forks source link

Support X11 Connection Over Unix Socket #35

Closed justin-gerhardt closed 3 years ago

justin-gerhardt commented 3 years ago

Modern linux distro's don't support (by default) TCP connections to the X11 server. Instead connections are normally made over unix sockets.

NOTE: This alone is not sufficient to get linux working in most circumstances because X11 generally expects clients to authenticate with a token that the remote system does not have. (this can be worked around by running xhost +local: to allow non-network local connections without authentication for the lifetime of the current session or permanently by adding to /etc/x\<display number>.hosts)

joelspadin commented 3 years ago

Looks good to me. Thanks!