mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-24 19:32:29 +01:00
fix error dialog show up when starting from default app
This commit is contained in:
parent
9130924e14
commit
3c2ebe0abf
@ -140,7 +140,7 @@ function openFilesEventually(paths) {
|
|||||||
// https://github.com/mifi/lossless-cut/issues/639
|
// https://github.com/mifi/lossless-cut/issues/639
|
||||||
// https://github.com/mifi/lossless-cut/issues/591
|
// https://github.com/mifi/lossless-cut/issues/591
|
||||||
function parseCliArgs(rawArgv = process.argv) {
|
function parseCliArgs(rawArgv = process.argv) {
|
||||||
const ignoreFirstArgs = isDev ? 2 : 1;
|
const ignoreFirstArgs = process.defaultApp ? 2 : 1;
|
||||||
// production: First arg is the LosslessCut executable
|
// production: First arg is the LosslessCut executable
|
||||||
// dev: First 2 args are electron and the electron.js
|
// dev: First 2 args are electron and the electron.js
|
||||||
const argsWithoutAppName = rawArgv.length > ignoreFirstArgs ? rawArgv.slice(ignoreFirstArgs) : [];
|
const argsWithoutAppName = rawArgv.length > ignoreFirstArgs ? rawArgv.slice(ignoreFirstArgs) : [];
|
||||||
|
Loading…
Reference in New Issue
Block a user