custom config dir

closes #1956
pull/2038/head
Mikael Finstad 2024-05-14 12:40:43 +02:00
rodzic fedd826af0
commit 73d7b750b7
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 25AB36E3E81CBC26
2 zmienionych plików z 3 dodań i 3 usunięć

2
cli.md
Wyświetl plik

@ -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)

Wyświetl plik

@ -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'],
});
}
@ -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');