🎨 Change the initial workspace path to ~/Library/Application Support/SiYuan on macOS https://github.com/siyuan-note/siyuan/issues/17095

🐛 Default workspace data will be lost on macOS https://github.com/siyuan-note/siyuan/issues/17430

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel
2026-04-08 17:33:04 +08:00
parent f0a6fb0711
commit 07705b5397
+3
View File
@@ -261,6 +261,9 @@ func initWorkspaceDir(workspaceArg string) {
if userProfile := os.Getenv("USERPROFILE"); "" != userProfile {
defaultWorkspaceDir = filepath.Join(userProfile, "SiYuan")
}
} else if gulu.OS.IsDarwin() {
// Change the initial workspace path to ~/Library/Application Support/SiYuan on macOS https://github.com/siyuan-note/siyuan/issues/17095
defaultWorkspaceDir = filepath.Join(userHomeConfDir, "Library", "Application Support", "SiYuan")
}
var workspacePaths []string