mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
'Fix: Remove trailing slashes from --user-data-dir CLI option path'
This commit is contained in:
parent
2ab2644ded
commit
a2bbda6d1a
1 changed files with 4 additions and 1 deletions
|
|
@ -86,7 +86,10 @@ export const startApp = (): void => {
|
|||
}
|
||||
|
||||
if (val && val.includes('--user-data-dir=')) {
|
||||
const customUserDir = val.replace('--user-data-dir=', '').trim();
|
||||
const customUserDir = val
|
||||
.replace('--user-data-dir=', '')
|
||||
.trim()
|
||||
.replace(/[\/\\]+$/, ''); // Remove trailing slashes
|
||||
log('Using custom directory for user data', customUserDir);
|
||||
app.setPath('userData', customUserDir);
|
||||
wasUserDataDirSet = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue