Skip to content

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

:bug: 移动端创建全局配置文件夹

Liang Ding135696714ecb
diff --git a/kernel/util/working_mobile.go b/kernel/util/working_mobile.go
index 45fd019991..0b5144763d 100644
--- a/kernel/util/working_mobile.go
+++ b/kernel/util/working_mobile.go
@@ -22,6 +22,7 @@ import (
"path/filepath"
"time"
+ "github.com/88250/gulu"
figure "github.com/common-nighthawk/go-figure"
"github.com/siyuan-note/httpclient"
"github.com/siyuan-note/logging"
@@ -34,6 +35,10 @@ func BootMobile(container, appDir, workspaceDir, nativeLibDir, privateDataDir, l
httpclient.SetUserAgent(UserAgent)
HomeDir = filepath.Join(workspaceDir, "home")
+ userHomeConfDir := filepath.Join(HomeDir, ".config", "siyuan")
+ if !gulu.File.IsExist(userHomeConfDir) {
+ os.MkdirAll(userHomeConfDir, 0755)
+ }
WorkingDir = filepath.Join(appDir, "app")
WorkspaceDir = workspaceDir
ConfDir = filepath.Join(workspaceDir, "conf")