mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Override default userData according to app's name
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user