Skip to content

Commit

Permalink
custom config dir
Browse files Browse the repository at this point in the history
closes #1956
  • Loading branch information
mifi committed May 14, 2024
1 parent fedd826 commit 73d7b75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ LosslessCut --settings-json '{captureFormat:"jpeg", "keyframeCut":true}'
- `--disable-networking` Turn off all network requests.
- `--http-api` Start the [HTTP server with an API](./api.md) to control LosslessCut, optionally specifying a port (default `8080`).
- `--keyboard-action` Run a keyboard action (see below.)
- `--custom-config-dir` Path to a directory where the `config.json` file will be stored and loaded from.
- `--config-dir` Path to a directory where the `config.json` file will be stored and loaded from.

## Controlling a running instance (experimental)

Expand Down
4 changes: 2 additions & 2 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ function parseCliArgs(rawArgv = process.argv) {

return yargsParser(argsWithoutAppName, {
boolean: ['allow-multiple-instances', 'disable-networking'],
string: ['settings-json', 'custom-config-dir'],
string: ['settings-json', 'config-dir'],
});
}

Expand Down Expand Up @@ -333,7 +333,7 @@ const readyPromise = app.whenReady();
(async () => {
try {
logger.info('Initializing config store');
await configStore.init({ customConfigDir: argv['customConfigDir'] });
await configStore.init({ customConfigDir: argv['configDir'] });

const allowMultipleInstances = configStore.get('allowMultipleInstances');

Expand Down

0 comments on commit 73d7b75

Please sign in to comment.