From b0b2c6f3ee88372883fc9d80c470b28f8c53ba2b Mon Sep 17 00:00:00 2001 From: Roxanne Skelly Date: Thu, 27 Sep 2018 13:31:28 -0700 Subject: [PATCH] Fixup path finding for interface --- server-console/src/modules/path-finder.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/server-console/src/modules/path-finder.js b/server-console/src/modules/path-finder.js index e9e7e48a5f..3fab8b2808 100644 --- a/server-console/src/modules/path-finder.js +++ b/server-console/src/modules/path-finder.js @@ -1,5 +1,6 @@ var fs = require('fs'); var path = require('path'); +const { app } = require('electron'); function platformExtension(name) { if (name == "Interface") { @@ -53,12 +54,9 @@ exports.searchPaths = function(name, binaryType, releaseType) { var componentsPath = appPath + "/Contents/MacOS/Components.app/Contents/MacOS/"; paths.push(componentsPath + name + extension); - // check beside the app bundle for the binaries - paths.push(path.join(path.dirname(appPath), name + extension)); - - // check in the peer bundle for the binaries - paths.push(path.join("..", name + extension)); } + // check beside the app bundle for the binaries + paths.push(path.join(path.dirname(app.getAppPath()), "../../..", name + extension)); } }