Skip to content

Commit

Permalink
Add support for custom profile directory
Browse files Browse the repository at this point in the history
A custom user data directory can now be specified using the "profiledir"
command line argument.

Github ref: closes #6175
  • Loading branch information
pacien committed Apr 9, 2019
1 parent 449065b commit faefbd7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion electron_app/src/electron-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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['profiledir']) {
app.setPath('userData', argv['profiledir']);
} else if (argv['profile']) {
app.setPath('userData', `${app.getPath('userData')}-${argv['profile']}`);
}

Expand Down

0 comments on commit faefbd7

Please sign in to comment.