Skip to content

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

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

Daniel134fd5e9572c
diff --git a/kernel/util/working.go b/kernel/util/working.go
index eb8719f2cd..781830c351 100644
--- a/kernel/util/working.go
+++ b/kernel/util/working.go
@@ -189,11 +189,11 @@ func initWorkspaceDir(workspaceArg string) {
}
}
- defaultWorkspaceDir := filepath.Join(HomeDir, "Documents", "SiYuan")
+ defaultWorkspaceDir := filepath.Join(HomeDir, "SiYuan")
if gulu.OS.IsWindows() {
// 改进 Windows 端默认工作空间路径 https://github.com/siyuan-note/siyuan/issues/5622
if userProfile := os.Getenv("USERPROFILE"); "" != userProfile {
- defaultWorkspaceDir = filepath.Join(userProfile, "Documents", "SiYuan")
+ defaultWorkspaceDir = filepath.Join(userProfile, "SiYuan")
}
}