Fixes #2836 - Use "/Applications/Parallels Desktop.app" as fallback app path.
This commit is contained in:
parent
82a7f6ef97
commit
4015c1789b
|
@ -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