The workspace is used to store data, which can be switched later in the top bar menu later
+
The workspace is used to store data, which can be switched later in the top bar
+ menu later
@@ -350,10 +352,12 @@
const {dialog} = require('@electron/remote')
const path = require('path')
const fs = require('fs')
+
const defaultWorkspace = path.join(decodeURIComponent(getSearch('home')), "SiYuan")
if (!fs.existsSync(defaultWorkspace)) {
fs.mkdirSync(defaultWorkspace, {mode: 0o755, recursive: true})
}
+
dialog.showOpenDialog({
defaultPath: defaultWorkspace,
properties: ['openDirectory', 'createDirectory'],