🎨 Set the default workspace path to ~/SiYuan/ on the desktop end https://github.com/siyuan-note/siyuan/issues/8602

This commit is contained in:
Daniel 2023-06-24 10:53:55 +08:00
parent 134fd5e957
commit 713bbf9a43
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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) {