mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-17 16:37:43 +00:00
feat: add command line flag for pen drive usage #192
This commit is contained in:
parent
6a2e05dabe
commit
d9d51e6e99
1 changed files with 9 additions and 0 deletions
|
|
@ -41,6 +41,15 @@ if (IS_DEV) {
|
|||
console.log('Starting in DEV Mode!!!');
|
||||
}
|
||||
|
||||
// NOTE: needs to be executed before everything else
|
||||
process.argv.forEach((val) => {
|
||||
if (val && val.includes('--user-data-dir=')) {
|
||||
const customUserDir = val.replace('--user-data-dir=', '').trim();
|
||||
console.log('Using custom directory for user data', customUserDir);
|
||||
app.setPath('userData', customUserDir);
|
||||
}
|
||||
});
|
||||
|
||||
interface MyApp extends App {
|
||||
isQuiting?: boolean;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue