Skip to content
This repository has been archived by the owner on Jan 17, 2021. It is now read-only.

Commit

Permalink
DISPLAY env variable will only be set with X-Window installed.
Browse files Browse the repository at this point in the history
For OS has no X-Window installed(e.g.: MacOS), you need to set a fake
DISPLAY env for the auto open in browser function working.
  • Loading branch information
tokikanno committed May 3, 2019
1 parent 9b6c13b commit 130c6eb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,18 @@ export VSCODE_EXTENSIONS_DIR="$HOME/.vscode-insiders/extensions"
By default, VS Code changes on the remote server won't be synced back
when the connection closes. To synchronize back to local when the connection ends,
pass the `-b` flag.


### Auto open in browser trouble shooting

sshcode detects if you're under GUI mode via checking environment variable `DISPLAY`.
If `DISPLAY` is not empty, then it will try to open romote vscode url in browser app mode.

But the `DISPLAY` environment variable will only be set with X-Window installed.

For OS doesn't have X-Window installed (e.g.: MacOS),
export following environment variable for enabling auto open in browser feature.

```bash
export DISPLAY=":0"
```

0 comments on commit 130c6eb

Please sign in to comment.