Skip to content

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

:art: 移动端支持多工作空间 https://github.com/siyuan-note/siyuan/issues/4642

Liang Dingceac827a7f6a
diff --git a/kernel/util/working.go b/kernel/util/working.go
index ed91959cc2..50cfc10118 100644
--- a/kernel/util/working.go
+++ b/kernel/util/working.go
@@ -207,7 +207,7 @@ func initWorkspaceDir(workspaceArg string) {
WorkspaceDir = workspaceArg
}
if !gulu.File.IsDir(WorkspaceDir) {
- log.Printf("use the default workspace [%s] since the specified workspace [%s] is not a dir", WorkspaceDir, defaultWorkspaceDir)
+ log.Printf("use the default workspace [%s] since the specified workspace [%s] is not a dir", defaultWorkspaceDir, WorkspaceDir)
WorkspaceDir = defaultWorkspaceDir
}
workspacePaths = append(workspacePaths, WorkspaceDir)
diff --git a/kernel/util/working_mobile.go b/kernel/util/working_mobile.go
index 465468f5c9..9b6d3561ea 100644
--- a/kernel/util/working_mobile.go
+++ b/kernel/util/working_mobile.go
@@ -93,7 +93,7 @@ func initWorkspaceDirMobile(workspaceBaseDir string) {
if 0 < len(workspacePaths) {
WorkspaceDir = workspacePaths[len(workspacePaths)-1]
if !gulu.File.IsDir(WorkspaceDir) {
- log.Printf("use the default workspace [%s] since the specified workspace [%s] is not a dir", WorkspaceDir, defaultWorkspaceDir)
+ log.Printf("use the default workspace [%s] since the specified workspace [%s] is not a dir", defaultWorkspaceDir, WorkspaceDir)
WorkspaceDir = defaultWorkspaceDir
}
workspacePaths[len(workspacePaths)-1] = WorkspaceDir