Override default userData according to app's name

This commit is contained in:
Cheng Zhao 2015-01-18 17:58:17 -08:00
parent 06da5f254a
commit d31df439c3
2 changed files with 4 additions and 0 deletions

View file

@ -41,6 +41,7 @@ if (option.file && !option.webdriver) {
app.setName(packageJson.productName);
else if (packageJson.name)
app.setName(packageJson.name);
app.setPath('userData', path.join(app.getPath('appData'), app.getName()));
}
// Run the app.