Skip to content

Commit f8f47f3

Browse files
committed
dynamically set workspace home dir based on SSHUser
1 parent e4af994 commit f8f47f3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pkg/entity/entity.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,8 @@ func (w Workspace) GetProjectFolderPath() string {
449449
if MapContainsKey(LegacyWorkspaceGroups, w.WorkspaceGroupID) {
450450
prefix = "/home/brev/workspace"
451451
} else {
452-
prefix = "/home/ubuntu"
452+
sshUser := w.GetSSHUser()
453+
prefix = "/home/" + sshUser
453454
}
454455
var folderName string
455456
if w.IDEConfig.DefaultWorkingDir != "" { //nolint:gocritic // i like if else

0 commit comments

Comments
 (0)