mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-04 20:00:17 +01:00
🎨 Change the initial workspace path to ~/Library/Application Support/SiYuan on macOS https://github.com/siyuan-note/siyuan/issues/17095
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
bcc9886518
commit
4dce33436e
1 changed files with 1 additions and 1 deletions
|
|
@ -440,7 +440,7 @@
|
|||
let defaultWorkspace = path.join(decodeURIComponent(getSearch('home')), "SiYuan")
|
||||
if ("darwin" === process.platform) {
|
||||
// Change the initial workspace path to ~/Library/Application Support/SiYuan on macOS https://github.com/siyuan-note/siyuan/issues/17095
|
||||
defaultWorkspace = path.join(decodeURIComponent(getSearch('home')), "Application Support", "SiYuan")
|
||||
defaultWorkspace = path.join(decodeURIComponent(getSearch('home')), "Library", "Application Support", "SiYuan")
|
||||
}
|
||||
if (!fs.existsSync(defaultWorkspace)) {
|
||||
fs.mkdirSync(defaultWorkspace, {mode: 0o755, recursive: true})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue