joelspadin / vscode-remote-x11

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

I need to `export DISPLAY="127.0.0.1:10.0"` before things work #63

Open 0zeroth opened 2 years ago

0zeroth commented 2 years ago

By default, on the remote we have:

echo $DISPLAY
localhost:10.1

Changing the localhost part to "127.0.0.1" fixes things, eg

 export DISPLAY="127.0.0.1:10.0"

I'm couldn't see anything about this in the documentation - perhaps mentioning this would solve a problem for someone else.

Is there a setting so I don't need to change this manually for every SSH session?