From 98e1c42183b61d313978b455c6bc9400353be671 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Fri, 8 Jan 2016 11:10:14 -0800 Subject: [PATCH] Fix openFileBrowser not working with paths with spaces --- console/src/main.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/console/src/main.js b/console/src/main.js index f03f0a1d9b..5d49725c7f 100644 --- a/console/src/main.js +++ b/console/src/main.js @@ -94,6 +94,7 @@ var acPath = null; var debug = argv.debug; + if (argv.localDebugBuilds || argv.localReleaseBuilds) { interfacePath = pathFinder.discoveredPath("Interface", argv.localReleaseBuilds); dsPath = pathFinder.discoveredPath("domain-server", argv.localReleaseBuilds); @@ -104,8 +105,11 @@ if (argv.localDebugBuilds || argv.localReleaseBuilds) { // TODO: show an error for the binaries that couldn't be found function openFileBrowser(path) { + // Add quotes around path + path = '"' + path + '"'; if (osType == "Windows_NT") { - childProcess.exec('start ' + path); + console.log('start "" ' + path); + childProcess.exec('start "" ' + path); } else if (osType == "Darwin") { childProcess.exec('open ' + path); } else if (osType == "Linux") {