Merge pull request #2839 from rickard-von-essen/issue-2836
Fixes #2836 - Use "/Applications/Parallels Desktop.app" as fallback…
This commit is contained in:
commit
40355c1d40
|
@ -95,6 +95,12 @@ func getAppPath(bundleId string) (string, error) {
|
|||
|
||||
pathOutput := strings.TrimSpace(stdout.String())
|
||||
if pathOutput == "" {
|
||||
if fi, err := os.Stat("/Applications/Parallels Desktop.app"); err == nil {
|
||||
if fi.IsDir() {
|
||||
return "/Applications/Parallels Desktop.app", nil
|
||||
}
|
||||
}
|
||||
|
||||
return "", fmt.Errorf(
|
||||
"Could not detect Parallels Desktop! Make sure it is properly installed.")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue