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

This commit is contained in:
Liang Ding 2022-10-25 01:04:51 +08:00
parent 915ab22b51
commit eb168ed54c
No known key found for this signature in database
GPG Key ID: 136F30F901A2231D
2 changed files with 4 additions and 1 deletions

View File

@ -544,6 +544,7 @@ const initKernel = (initData) => {
const initDatas = initData.split('-') const initDatas = initData.split('-')
cmds.push('--workspace', initDatas[0]) cmds.push('--workspace', initDatas[0])
cmds.push('--lang', initDatas[1]) cmds.push('--lang', initDatas[1])
cmds.push("--resident", "false")
cmd = `ui version [${appVer}], booting kernel [${kernelPath} --wd=${appDir} --workspace=${initDatas[0]} --lang=${initDatas[1]}]` cmd = `ui version [${appVer}], booting kernel [${kernelPath} --wd=${appDir} --workspace=${initDatas[0]} --lang=${initDatas[1]}]`
} }
writeLog(cmd) writeLog(cmd)

View File

@ -47,13 +47,15 @@ func logBootInfo() {
logging.LogInfof("kernel is booting:\n"+ logging.LogInfof("kernel is booting:\n"+
" * ver [%s]\n"+ " * ver [%s]\n"+
" * arch [%s]\n"+ " * arch [%s]\n"+
" * resident [%v]\n"+
" * pid [%d]\n"+
" * runtime mode [%s]\n"+ " * runtime mode [%s]\n"+
" * working directory [%s]\n"+ " * working directory [%s]\n"+
" * read only [%v]\n"+ " * read only [%v]\n"+
" * container [%s]\n"+ " * container [%s]\n"+
" * database [ver=%s]\n"+ " * database [ver=%s]\n"+
" * workspace directory [%s, data %s]", " * 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 { func IsMutexLocked(m *sync.Mutex) bool {