Repository navigation
Respect LD_LIBRARY_PATH when forking on Linux - #545
Conversation
There was a problem hiding this comment.
Ahh, interesting, normally when something forks we preserve the environment: https://github.com/codercom/code-server/blob/5f40ebb8457380aa1e9955302d9e41a6b042ef14/packages/protocol/src/node/modules/child_process.ts#L86
But, since the shared process is forked directly it doesn't get the environment preserved. I think it might make sense to edit: https://github.com/codercom/code-server/blob/5f40ebb8457380aa1e9955302d9e41a6b042ef14/packages/server/src/vscode/sharedProcess.ts#L91
Then import preserveEnv from @coder/protocol and call it there before forking the shared process.
a28784b to
79f8fd1
Compare
79f8fd1 to
5149ad1
Compare
|
Updated the PR to use |
* upstream/master: (68 commits) Fix docker oneliner in README.md Fix macOS release Rename codercom/code-server to cdr/code-server Expose Terminal Service in API Make preserveEnv return a new object Preserve environment when forking shared process (coder#545) codercom -> cdr Package only on darwin Include version with target env Add docker service Add support for musl and centos Remove reveal in finder/explorer option from the context menu (coder#586) Fix open dialog crash when there is a broken link Only output password if it was generated Fix full screen detection for Chromium Fix toggling full screen Improve size column in dialogs Fix typo DigitalOcean (coder#595) Fix coder#587 (coder#588) Fix protocol fs test ...
Describe in detail the problem you had and how this PR fixes it
Currently there is no easy way to run
code-serverif disto's "stock"libstdc++package is too old becausecode-serverdoes not respectLD_LIBRARY_PATHon Linux.Even if I set
LD_LIBRARY_PATHI get this error:In some environments there is newer
libstdc++available that isn't installed to default location. This Pull Request makes it possible to use customlibstdc++.Is there an open issue you can link to?
#347
#239