From 6cc2d4189ddd1bbf93914eca665ee4c8893771a2 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 5 Jan 2023 16:45:34 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=A1=8C=E9=9D=A2=E7=AB=AF=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=90=8C=E6=97=B6=E6=89=93=E5=BC=80=E5=A4=9A=E4=B8=AA?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E7=A9=BA=E9=97=B4=20https://github.com/siyua?= =?UTF-8?q?n-note/siyuan/issues/4567?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/electron/main.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/electron/main.js b/app/electron/main.js index a522b8871..f18f3621a 100644 --- a/app/electron/main.js +++ b/app/electron/main.js @@ -56,10 +56,8 @@ try { } } catch (e) { console.error(e) - require('electron'). - dialog. - showErrorBox('创建配置目录失败 Failed to create config directory', - '思源需要在用户家目录下创建配置文件夹(~/.config/siyuan),请确保该路径具有写入权限。\n\nSiYuan needs to create a configuration folder (~/.config/siyuan) in the user\'s home directory. Please make sure that the path has write permissions.') + require('electron').dialog.showErrorBox('创建配置目录失败 Failed to create config directory', + '思源需要在用户家目录下创建配置文件夹(~/.config/siyuan),请确保该路径具有写入权限。\n\nSiYuan needs to create a configuration folder (~/.config/siyuan) in the user\'s home directory. Please make sure that the path has write permissions.') app.exit() } @@ -439,7 +437,7 @@ const initKernel = (workspace, lang) => { }, ) kernelProcessPid = kernelProcess.pid - writeLog('booted kernel process [pid=' + kernelProcessPid + ']') + writeLog('booted kernel process [pid=' + kernelProcessPid + ', port=' + kernelPort + ']') kernelProcess.on('close', (code) => { writeLog(