mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-26 19:38:48 +01:00
🚨
This commit is contained in:
parent
dc5551aea8
commit
b8eec1bd34
10 changed files with 16 additions and 18 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue