mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🎨 桌面端内核进程使用随机端口 https://github.com/siyuan-note/siyuan/issues/4952
This commit is contained in:
parent
bf2c4bbe7e
commit
2fe6b76da4
3 changed files with 6 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "SiYuan User Guide",
|
||||
"sort": 2,
|
||||
"sort": 3,
|
||||
"icon": "1f4d4",
|
||||
"closed": false,
|
||||
"refCreateSavePath": "",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "思源筆記用戶指南",
|
||||
"sort": 0,
|
||||
"sort": 2,
|
||||
"icon": "1f4d4",
|
||||
"closed": false,
|
||||
"refCreateSavePath": "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue