homepath 설정

This commit is contained in:
2024-02-13 15:12:18 +09:00
parent f45558483e
commit dcc94d2609
3 changed files with 4 additions and 6 deletions

View File

@ -154,7 +154,6 @@ func prepareProcessLaunch(storageRoot string, req *shared.StartProcessRequest) *
os.Chmod(path.Join(verpath, exefile), 0777)
exef, _ := os.Executable()
expanded := make([]string, len(req.Args))
for i, arg := range req.Args {
expanded[i] = os.ExpandEnv(arg)
@ -169,8 +168,7 @@ func prepareProcessLaunch(storageRoot string, req *shared.StartProcessRequest) *
cmd := exec.Command(os.ExpandEnv(exename), expanded[1:]...)
// 윈도우에서는 exename에 경로가 들어가 있으므로 Dir세팅을 안한다. linux에서 안해도 되나?
//cmd.Dir = verpath
cmd.Dir = verpath
stdin, _ := cmd.StdinPipe()
seq++