🎨 桌面端内核进程使用随机端口 https://github.com/siyuan-note/siyuan/issues/4952

This commit is contained in:
Liang Ding 2022-10-25 10:44:04 +08:00
parent bf2c4bbe7e
commit 2fe6b76da4
No known key found for this signature in database
GPG Key ID: 136F30F901A2231D
3 changed files with 6 additions and 6 deletions

View File

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

View File

@ -1,6 +1,6 @@
{
"name": "SiYuan User Guide",
"sort": 2,
"sort": 3,
"icon": "1f4d4",
"closed": false,
"refCreateSavePath": "",

View File

@ -1,6 +1,6 @@
{
"name": "思源筆記用戶指南",
"sort": 0,
"sort": 2,
"icon": "1f4d4",
"closed": false,
"refCreateSavePath": "",