Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

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

Daniele65c2a3ac164
diff --git a/kernel/util/working.go b/kernel/util/working.go
index 2b08e03f60..a08e55c778 100644
--- a/kernel/util/working.go
+++ b/kernel/util/working.go
@@ -263,7 +263,7 @@ func initWorkspaceDir(workspaceArg string) {
}
} 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")
+ defaultWorkspaceDir = filepath.Join(HomeDir, "Library", "Application Support", "SiYuan")
}
var workspacePaths []string