launch app hidden (#10962)

When starting the app in the background, start it hidden.
This commit is contained in:
Daniel Hiltgen
2025-06-06 14:06:29 -07:00
committed by GitHub
parent 2ae65ae471
commit a8ed68bd93
2 changed files with 2 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ func startApp(ctx context.Context, client *api.Client) error {
return errors.New("could not find ollama app")
}
path := strings.Split(link, "Ollama.app")
if err := exec.Command("/usr/bin/open", "-a", path[0]+"Ollama.app").Run(); err != nil {
if err := exec.Command("/usr/bin/open", "-j", "-a", path[0]+"Ollama.app").Run(); err != nil {
return err
}
return waitForServer(ctx, client)