Add support for custom profile directory
A custom user data directory can now be specified using the "profile-dir" command line argument. Github ref: closes #6175 Signed-off-by: Pacien TRAN-GIRARD <pacien.trangirard@pacien.net>
This commit is contained in:
parent
449065b466
commit
2c9b51f29d
2 changed files with 5 additions and 1 deletions
|
@ -42,7 +42,9 @@ const Store = require('electron-store');
|
|||
// migrating to mitigate any risk of it being used maliciously.
|
||||
let migratingOrigin = false;
|
||||
|
||||
if (argv['profile']) {
|
||||
if (argv['profile-dir']) {
|
||||
app.setPath('userData', argv['profile-dir']);
|
||||
} else if (argv['profile']) {
|
||||
app.setPath('userData', `${app.getPath('userData')}-${argv['profile']}`);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue