Merge pull request #2839 from rickard-von-essen/issue-2836

Fixes #2836 - Use "/Applications/Parallels Desktop.app" as fallback…
This commit is contained in:
Rickard von Essen 2015-10-18 20:48:18 +02:00
commit 40355c1d40
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.")
}