From 135696714ecb5bc75a05be87b86add40bf200667 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Mon, 18 Jul 2022 09:15:08 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E7=A7=BB=E5=8A=A8=E7=AB=AF=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E5=85=A8=E5=B1=80=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/util/working_mobile.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/util/working_mobile.go b/kernel/util/working_mobile.go index 45fd01999..0b5144763 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")