fixed work directory
This commit is contained in:
parent
d7cfdaf6f2
commit
cce23ec175
@ -288,6 +288,7 @@ func (i *InstanceManager)LaunchInstance(instance string) {
|
|||||||
}
|
}
|
||||||
fmt.Printf("Args: %+v", args)
|
fmt.Printf("Args: %+v", args)
|
||||||
child := exec.Command(filepath.Join(dir, "java", fmt.Sprintf("java-%d-%s", instanceObject.JavaVersion, suffix), "bin", execName), args...)
|
child := exec.Command(filepath.Join(dir, "java", fmt.Sprintf("java-%d-%s", instanceObject.JavaVersion, suffix), "bin", execName), args...)
|
||||||
|
child.Dir = filepath.Join(dir, "instances", instance, "minecraft")
|
||||||
wruntime.WindowHide(i.app.Ctx)
|
wruntime.WindowHide(i.app.Ctx)
|
||||||
data, err := child.CombinedOutput()
|
data, err := child.CombinedOutput()
|
||||||
wruntime.WindowShow(i.app.Ctx)
|
wruntime.WindowShow(i.app.Ctx)
|
||||||
|
Loading…
Reference in New Issue
Block a user