Skip to content

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

:recycle: 桌面端内核进程不再以游离模式拉起 https://github.com/siyuan-note/siyuan/issues/6336

Liang Dingeb168ed54c72
diff --git a/app/electron/main.js b/app/electron/main.js
index d431f27069..4ba960405b 100644
--- a/app/electron/main.js
+++ b/app/electron/main.js
@@ -544,6 +544,7 @@ const initKernel = (initData) => {
const initDatas = initData.split('-')
cmds.push('--workspace', initDatas[0])
cmds.push('--lang', initDatas[1])
+ cmds.push("--resident", "false")
cmd = `ui version [${appVer}], booting kernel [${kernelPath} --wd=${appDir} --workspace=${initDatas[0]} --lang=${initDatas[1]}]`
}
writeLog(cmd)
diff --git a/kernel/util/runtime.go b/kernel/util/runtime.go
index 93df3663c7..5ac9d82afd 100644
--- a/kernel/util/runtime.go
+++ b/kernel/util/runtime.go
@@ -47,13 +47,15 @@ func logBootInfo() {
logging.LogInfof("kernel is booting:\n"+
" * ver [%s]\n"+
" * arch [%s]\n"+
+ " * resident [%v]\n"+
+ " * pid [%d]\n"+
" * runtime mode [%s]\n"+
" * working directory [%s]\n"+
" * read only [%v]\n"+
" * container [%s]\n"+
" * database [ver=%s]\n"+
" * workspace directory [%s, data %s]",
- Ver, runtime.GOARCH, Mode, WorkingDir, ReadOnly, Container, DatabaseVer, WorkspaceDir, dataDirSize)
+ Ver, runtime.GOARCH, Resident, os.Getpid(), Mode, WorkingDir, ReadOnly, Container, DatabaseVer, WorkspaceDir, dataDirSize)
}
func IsMutexLocked(m *sync.Mutex) bool {