Skip to content

The swiss army knife of lossless video/audio editing

fix macos "open with" bug

Mikael Finstad6724a8b82ef4
diff --git a/public/electron.js b/public/electron.js
index e4528b7a..a0504998 100644
--- a/public/electron.js
+++ b/public/electron.js
@@ -153,7 +153,8 @@ app.on('ready', async () => {
const argv = parseCliArgs();
logger.info('CLI arguments', argv);
- filesToOpen = argv._;
+ // Only if no files to open already (open-file might have already added some files)
+ if (filesToOpen.length === 0) filesToOpen = argv._;
const { settingsJson } = argv;
if (settingsJson != null) {