This commit is contained in:
Vanessa 2023-11-20 12:28:20 +08:00
parent dc5551aea8
commit b8eec1bd34
10 changed files with 16 additions and 18 deletions

View file

@ -602,13 +602,13 @@ app.commandLine.appendSwitch("force_high_performance_gpu"); // Force using discr
writeLog("app is packaged [" + app.isPackaged + "], command line args [" + process.argv.join(", ") + "]");
let argStart = 1;
if (!app.isPackaged) {
argStart = 2
argStart = 2;
}
for (let i = argStart; i < process.argv.length; i++) {
let arg = process.argv[i];
if (arg.startsWith("--workspace=") || arg.startsWith("--port=") || arg.startsWith("siyuan://")) {
// 跳过内置参数
continue
continue;
}
app.commandLine.appendSwitch(arg);