返回 DeepSeek-Reasonix
executable_path_other.go
根目录 / internal / desktoplauncher / executable_path_other.go
1 //go:build !windows
2
3 package desktoplauncher
4
5 import "path/filepath"
6
7 func resolveExecutablePath(path string) (string, error) {
8 resolved, err := filepath.EvalSymlinks(path)
9 if err != nil {
10 return path, nil
11 }
12 return resolved, nil
13 }
14
14 lines GO