Skip to content

Commit a768b2e

Browse files
committed
open in the homedir by default
1 parent 6e04433 commit a768b2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/tools_code_server.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@ func buildCodeServerBinds(
149149
return binds, nil
150150
}
151151

152-
func buildCodeServerCommand(isFirstRun bool) string {
152+
func buildCodeServerCommand(isFirstRun bool, defaultDir string) string {
153153
baseCommand := strings.Join([]string{
154154
"code-server --config /root/.config/code-server/config.yaml",
155155
"--extensions-dir /persistent-extensions",
156-
"--user-data-dir /persistent-user-data",
156+
"--user-data-dir /persistent-user-data ", defaultDir,
157157
}, " ")
158158

159159
if !isFirstRun {
@@ -289,7 +289,7 @@ func NewCodeServerNode(name, image, labsDir string,
289289
},
290290
}
291291

292-
cmd := buildCodeServerCommand(isFirstRun)
292+
cmd := buildCodeServerCommand(isFirstRun, homeDir)
293293

294294
nodeConfig := &clabtypes.NodeConfig{
295295
LongName: name,

0 commit comments

Comments
 (0)