diff --git a/electron_app/src/electron-main.js b/electron_app/src/electron-main.js index e9659070ec6..fc2869f91aa 100644 --- a/electron_app/src/electron-main.js +++ b/electron_app/src/electron-main.js @@ -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']}`); }