From 4015c1789b21c47aac6af4ee394fbc9cad690f88 Mon Sep 17 00:00:00 2001 From: Rickard von Essen Date: Fri, 16 Oct 2015 19:57:39 +0200 Subject: [PATCH] Fixes #2836 - Use "/Applications/Parallels Desktop.app" as fallback app path. --- builder/parallels/common/driver_9.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/builder/parallels/common/driver_9.go b/builder/parallels/common/driver_9.go index db229597b..aa11d1c0e 100644 --- a/builder/parallels/common/driver_9.go +++ b/builder/parallels/common/driver_9.go @@ -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.") }