-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terminal does not load user paths or env variables #226
Comments
hey @tvarwig, was this running on your own user, yes? |
@sr229 Yes as a non root user |
FWIW it should load that properly since its user shell bound. Was this in Docker or a bare installation? |
Bare installation with |
systemd doesn't get your environment. You need to use the Environment or EnvironmentFile directives to set environment variables. Quick (probably foolish) hack would be to |
@bketelsen thank you for the information. I assummed since the terminal in VSCode loaded with my username the envirnment would like like the desktop app. |
Sorry to comment on such an old thread, but it's the closest I've found to a solution for myself. @bketelsen, could you expand on how someone using code-server as a system service could modify the daemon to use the user's environment? Context: My instance of code-server is secured via an identity-aware proxy, so I'm not worried about the security risk. The values in my |
code-server
version:1.32.0-245Description
Custom binary paths are not loading from the users
.profile
or/etc/profile
on ubuntu. For example, I havego
installed on the ubuntu machine. In my~/.profile
, I have the path toexport PATH=$GOPATH/bin:$GOROOT/bin:$PATH
. On a standard ssh terminal thego
binary loads. The terminal in VSCode does not load any custom paths. I have to runsource ~/.profile
. This has to be done on each load of a new terminal.Steps to Reproduce
go
-- OutputCommand 'go' not found,
source ~/.profile
go version
-- Output:go version go1.12 linux/amd64
The text was updated successfully, but these errors were encountered: