fixed work directory

This commit is contained in:
Samuel Walker 2024-10-31 17:50:45 -06:00
parent d7cfdaf6f2
commit cce23ec175

View File

@ -288,6 +288,7 @@ func (i *InstanceManager)LaunchInstance(instance string) {
}
fmt.Printf("Args: %+v", 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)
data, err := child.CombinedOutput()
wruntime.WindowShow(i.app.Ctx)