Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

read from os executable

Bruce MacDonald50e87c66911b
diff --git a/cmd/cmd.go b/cmd/cmd.go
index e0df2e75f..1406cb0e8 100644
--- a/cmd/cmd.go
+++ b/cmd/cmd.go
@@ -527,7 +527,11 @@ func RunServer(_ *cobra.Command, _ []string) error {
}
func startMacApp(client *api.Client) error {
- link, err := os.Readlink("/usr/local/bin/ollama")
+ exe, err := os.Executable()
+ if err != nil {
+ return err
+ }
+ link, err := os.Readlink(exe)
if err != nil {
return err
}