Fixes #2836 - Use "/Applications/Parallels Desktop.app" as fallback app path.

This commit is contained in:
Rickard von Essen 2015-10-16 19:57:39 +02:00
parent 82a7f6ef97
commit 4015c1789b
1 changed files with 6 additions and 0 deletions

View File

@ -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.")
}