Skip to content

Commit

Permalink
use user home directory instead of current user home directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwq committed Feb 6, 2024
1 parent 374d261 commit a78815e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions frontend/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -634,9 +634,10 @@ func startShell(pts *os.File, pr *io.PipeReader, utmpHost string, conf *Config)

procAttr := os.ProcAttr{
Files: []*os.File{pts, pts, pts}, // use pts as stdin, stdout, stderr
Dir: getHomeDir(),
Sys: sysProcAttr,
Env: env,
// Dir: getHomeDir(),
Dir: u.HomeDir,
Sys: sysProcAttr,
Env: env,
}

// // open terminal
Expand Down

0 comments on commit a78815e

Please sign in to comment.