An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 桌面端内核进程根据 Electron 主进程判断是否自动退出 Fix https://github.com/siyuan-note/siyuan/issues/7002
Liang Dingbdec1215a0ad
diff --git a/kernel/model/process.go b/kernel/model/process.goindex 1c3b4805d5..0f73e81659 100644--- a/kernel/model/process.go+++ b/kernel/model/process.go@@ -42,12 +42,7 @@ func HookDesktopUIProc() {return}- uiProcName := "siyuan"- if "dev" == util.Mode {- uiProcName = "electron"- }-- time.Sleep(30 * time.Second)+ uiProcNames := []string{"siyuan", "electron"}existUIProc := falsefor range time.Tick(7 * time.Second) {util.UIProcessIDs.Range(func(uiProcIDArg, _ interface{}) bool {@@ -63,11 +58,13 @@ func HookDesktopUIProc() {return true}- if strings.Contains(strings.ToLower(proc.Executable()), uiProcName) {- existUIProc = true- return false+ procName := strings.ToLower(proc.Executable())+ for _, name := range uiProcNames {+ if strings.Contains(procName, name) {+ existUIProc = true+ return false+ }}-return true})