homepath 설정
This commit is contained in:
@ -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++
|
||||
|
||||
2
go.mod
2
go.mod
@ -11,7 +11,7 @@ require (
|
||||
golang.org/x/text v0.10.0
|
||||
google.golang.org/grpc v1.56.0
|
||||
google.golang.org/protobuf v1.31.0
|
||||
repositories.action2quare.com/ayo/gocommon v0.0.0-20240204120348-2fef6d4064b0
|
||||
repositories.action2quare.com/ayo/gocommon v0.0.0-20240213060646-bef684b3fe34
|
||||
)
|
||||
|
||||
require (
|
||||
|
||||
4
go.sum
4
go.sum
@ -173,5 +173,5 @@ gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
|
||||
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
howett.net/plist v1.0.0 h1:7CrbWYbPPO/PyNy38b2EB/+gYbjCe2DXBxgtOOZbSQM=
|
||||
howett.net/plist v1.0.0/go.mod h1:lqaXoTrLY4hg8tnEzNru53gicrbv7rrk+2xJA/7hw9g=
|
||||
repositories.action2quare.com/ayo/gocommon v0.0.0-20240204120348-2fef6d4064b0 h1:HBEVd4n9080Lz5R3S00PBqK1c6xI2m3eACcQa7Q2a8g=
|
||||
repositories.action2quare.com/ayo/gocommon v0.0.0-20240204120348-2fef6d4064b0/go.mod h1:Gb418rT96M3K7L/XMPzp8IJj4UXVunq7dZzrxsMBz/8=
|
||||
repositories.action2quare.com/ayo/gocommon v0.0.0-20240213060646-bef684b3fe34 h1:BmcAbve3Ep6FPrdo3XXaIsQlBGt8kAMepmZqrCKkrGw=
|
||||
repositories.action2quare.com/ayo/gocommon v0.0.0-20240213060646-bef684b3fe34/go.mod h1:Gb418rT96M3K7L/XMPzp8IJj4UXVunq7dZzrxsMBz/8=
|
||||
|
||||
Reference in New Issue
Block a user