From bf2c4bbe7eeeaa439b9c2a8c5bae80dd7727ec26 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 25 Oct 2022 10:33:14 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=A1=8C=E9=9D=A2=E7=AB=AF=E5=86=85?= =?UTF-8?q?=E6=A0=B8=E8=BF=9B=E7=A8=8B=E4=BD=BF=E7=94=A8=E9=9A=8F=E6=9C=BA?= =?UTF-8?q?=E7=AB=AF=E5=8F=A3=20https://github.com/siyuan-note/siyuan/issu?= =?UTF-8?q?es/4952?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/electron/main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/electron/main.js b/app/electron/main.js index 4ba960405..b4eab393a 100644 --- a/app/electron/main.js +++ b/app/electron/main.js @@ -545,6 +545,9 @@ const initKernel = (initData) => { 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)