Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Support set Chromium command line arguments on the desktop https://github.com/siyuan-note/siyuan/issues/9696

Daniel1399757e7666
diff --git a/app/electron/main.js b/app/electron/main.js
index 26e7622ee9..8ff0697cf9 100644
--- a/app/electron/main.js
+++ b/app/electron/main.js
@@ -605,7 +605,7 @@ if (!app.isPackaged) {
argStart = 2
}
for (let i = argStart; i < process.argv.length; i++) {
- if (process.argv[i].startsWith("--workspace=") || process.argv[i].startsWith("--port=")) {
+ if (process.argv[i].startsWith("--workspace=") || process.argv[i].startsWith("--port=") || process.argv[i].startsWith("siyuan://")) {
// 跳过内置参数
continue
}