diff --git a/internal/fs-service/fs.go b/internal/fs-service/fs.go index 3ba2d4e..c594a02 100644 --- a/internal/fs-service/fs.go +++ b/internal/fs-service/fs.go @@ -76,7 +76,10 @@ func (f *FSService) RemoveFile(path string) error { } func (f *FSService) StartApp(path string) (bool, string) { + dir := filepath.Dir(path) cmd := exec.Command(path) + cmd.Dir = dir + err := cmd.Start() if err != nil { return false, err.Error() diff --git a/pkg/constant/constant.go b/pkg/constant/constant.go index 69ae2e1..2487988 100644 --- a/pkg/constant/constant.go +++ b/pkg/constant/constant.go @@ -10,7 +10,7 @@ const ProxyFile = "firefly-go-proxy.exe" const LauncherFile = "firefly-launcher.exe" const TempUrl = "./temp" -const CurrentLauncherVersion = "2.5.0" +const CurrentLauncherVersion = "2.5.1" type ToolFile string