mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-21 19:41:05 +08:00
🎨 桌面端内核进程使用随机端口 https://github.com/siyuan-note/siyuan/issues/4952
This commit is contained in:
parent
bf2c4bbe7e
commit
2fe6b76da4
@ -540,14 +540,14 @@ const initKernel = (initData) => {
|
|||||||
|
|
||||||
let cmd = `ui version [${appVer}], booting kernel [${kernelPath} --wd=${appDir}]`
|
let cmd = `ui version [${appVer}], booting kernel [${kernelPath} --wd=${appDir}]`
|
||||||
const cmds = ['--wd', appDir]
|
const cmds = ['--wd', appDir]
|
||||||
|
cmds.push('--resident', 'false')
|
||||||
|
if (isDevEnv) {
|
||||||
|
cmds.push('--mode', 'dev')
|
||||||
|
}
|
||||||
if (initData) {
|
if (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")
|
|
||||||
if (isDevEnv) {
|
|
||||||
cmds.push('--mode', 'dev')
|
|
||||||
}
|
|
||||||
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)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "SiYuan User Guide",
|
"name": "SiYuan User Guide",
|
||||||
"sort": 2,
|
"sort": 3,
|
||||||
"icon": "1f4d4",
|
"icon": "1f4d4",
|
||||||
"closed": false,
|
"closed": false,
|
||||||
"refCreateSavePath": "",
|
"refCreateSavePath": "",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "思源筆記用戶指南",
|
"name": "思源筆記用戶指南",
|
||||||
"sort": 0,
|
"sort": 2,
|
||||||
"icon": "1f4d4",
|
"icon": "1f4d4",
|
||||||
"closed": false,
|
"closed": false,
|
||||||
"refCreateSavePath": "",
|
"refCreateSavePath": "",
|
||||||
|
Loading…
Reference in New Issue
Block a user