From f7e90e4c0dafcf5cbf21e15c4ffb0837ccba4836 Mon Sep 17 00:00:00 2001 From: Jan Richter Date: Thu, 19 Apr 2018 10:52:46 +0200 Subject: [PATCH] Look for xhyve in /usr/local/bin --- browser/services/platform.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/browser/services/platform.js b/browser/services/platform.js index 7405da32..fa54bad1 100644 --- a/browser/services/platform.js +++ b/browser/services/platform.js @@ -144,7 +144,9 @@ class Platform { static isXhyveAvailable() { return Platform.identify({ darwin: ()=> { - return pify(child_process.exec)('which docker-machine-driver-xhyve').then((stdout) => { + let newPath = `/usr/local/bin${path.delimiter}${process.env.PATH}`; + + return pify(child_process.exec)('which docker-machine-driver-xhyve', {env: {PATH: newPath}}).then((stdout) => { return Promise.resolve(stdout.trim().length > 0); }).catch(() => { return Promise.resolve(false);