Add sandbox option to load home locally

This commit is contained in:
Atlante45 2016-06-13 15:49:31 -07:00
parent 925375fb7a
commit cc16dc07df

View file

@ -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,