Skip to content

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

:art: Windows/macOS 桌面端支持开机启动 https://github.com/siyuan-note/siyuan/issues/6833

Liang Ding1b43384a1e7b
diff --git a/app/src/config/about.ts b/app/src/config/about.ts
index 19fc75f38b..94432d4ef9 100644
--- a/app/src/config/about.ts
+++ b/app/src/config/about.ts
@@ -397,6 +397,7 @@ export const about = {
window.siyuan.config.system.downloadInstallPkg = downloadInstallPkgElement.checked;
});
});
+ /// #if !BROWSER
const autoLaunchElement = about.element.querySelector("#autoLaunch") as HTMLInputElement;
autoLaunchElement.addEventListener("change", () => {
fetchPost("/api/system/setAutoLaunch", {autoLaunch: autoLaunchElement.checked}, () => {
@@ -404,6 +405,7 @@ export const about = {
app.setLoginItemSettings({openAtLogin: autoLaunchElement.checked});
});
});
+ /// #endif
about.element.querySelector("#aboutConfirm").addEventListener("click", () => {
const scheme = (about.element.querySelector("#aboutScheme") as HTMLInputElement).value;
const host = (about.element.querySelector("#aboutHost") as HTMLInputElement).value;