| 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 |