From 30fd11cbcd2cc0ba30618adc16d916f6b36b369e Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 17 Aug 2022 11:45:20 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=AF=8F=E6=AC=A1=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E4=B8=8D=E5=86=8D=E8=87=AA=E5=8A=A8=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=20Documents=20=E6=96=87=E4=BB=B6=E5=A4=B9=20Fix=20htt?= =?UTF-8?q?ps://github.com/siyuan-note/siyuan/issues/5653?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/electron/main.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/electron/main.js b/app/electron/main.js index eb0ae9fe0..46d61f7dc 100644 --- a/app/electron/main.js +++ b/app/electron/main.js @@ -82,10 +82,6 @@ try { if (!fs.existsSync(confDir)) { fs.mkdirSync(confDir, {mode: 0o755, recursive: true}) } - const documents = path.join(app.getPath('home'), 'Documents') - if (!fs.existsSync(documents)) { - fs.mkdirSync(documents, {mode: 0o755, recursive: true}) - } } catch (e) { console.error(e) require('electron').dialog.showErrorBox('创建配置目录失败 Failed to create config directory',