From 73d7b750b7da2f82000608378793a6c4ce728706 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Tue, 14 May 2024 12:40:43 +0200 Subject: [PATCH] custom config dir closes #1956 --- cli.md | 2 +- src/main/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cli.md b/cli.md index ced19ac4..913c8a85 100644 --- a/cli.md +++ b/cli.md @@ -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) diff --git a/src/main/index.ts b/src/main/index.ts index 9c7038ca..5476fbac 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -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');