From cc16dc07dfa80a0da3d889c004f722fdb6bdf9c7 Mon Sep 17 00:00:00 2001 From: Atlante45 Date: Mon, 13 Jun 2016 15:49:31 -0700 Subject: [PATCH] Add sandbox option to load home locally --- server-console/src/main.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/server-console/src/main.js b/server-console/src/main.js index 6465f6b0a3..8f85872d0b 100644 --- a/server-console/src/main.js +++ b/server-console/src/main.js @@ -515,6 +515,20 @@ function maybeInstallDefaultContentSet(onComplete) { return; } + console.log("Found contentPath:" + argv.contentPath); + if (argv.contentPath) { + fs.copy(argv.contentPath, getRootHifiDataDirectory(), function (err) { + if (err) { + console.log('Could not copy home content: ' + err); + return console.error(err) + } + console.log('Copied home content over to: ' + getRootHifiDataDirectory()); + onComplete(); + }); + return; + } + + // Show popup var window = new BrowserWindow({ icon: appIcon,