An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 改进 Windows 端默认工作空间路径 Fix https://github.com/siyuan-note/siyuan/issues/5622
Liang Ding0a9987726a8d
diff --git a/kernel/util/working.go b/kernel/util/working.goindex f5c99990c8..c72cafcc61 100644--- a/kernel/util/working.go+++ b/kernel/util/working.go@@ -194,6 +194,13 @@ func initWorkspaceDir(workspaceArg string) {}defaultWorkspaceDir := filepath.Join(HomeDir, "Documents", "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")+ }+ }+var workspacePaths []stringif !gulu.File.IsExist(workspaceConf) {WorkspaceDir = defaultWorkspaceDir