From 713bbf9a43080d5f759605be35526c30f0c9ac10 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 24 Jun 2023 10:53:55 +0800 Subject: [PATCH] :art: Set the default workspace path to `~/SiYuan/` on the desktop end https://github.com/siyuan-note/siyuan/issues/8602 --- app/electron/init.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/electron/init.html b/app/electron/init.html index a22eb8f37..03ece5ad9 100644 --- a/app/electron/init.html +++ b/app/electron/init.html @@ -347,7 +347,7 @@ const {dialog} = require('@electron/remote') const path = require('path') dialog.showOpenDialog({ - defaultPath: path.join(decodeURIComponent(getSearch('home')), 'Documents'), + defaultPath: decodeURIComponent(getSearch('home')), properties: ['openDirectory', 'createDirectory'], }).then((result) => { if (result.canceled) {