From 4ee7497afd259479514d8d9271a229196b368a05 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Tue, 9 Dec 2025 20:26:23 +0800 Subject: [PATCH] :art: Improve boot Signed-off-by: Daniel <845765@qq.com> --- kernel/util/working.go | 2 ++ kernel/util/working_mobile.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/kernel/util/working.go b/kernel/util/working.go index 87c26b789..701350bdc 100644 --- a/kernel/util/working.go +++ b/kernel/util/working.go @@ -339,6 +339,8 @@ func ReadWorkspacePaths() (ret []string, err error) { return } + logging.LogInfof("read data [%s] from workspace conf [%s]", string(data), workspaceConf) + if err = gulu.JSON.UnmarshalJSON(data, &ret); err != nil { msg := fmt.Sprintf("unmarshal workspace conf [%s] failed: %s", workspaceConf, err) logging.LogErrorf(msg) diff --git a/kernel/util/working_mobile.go b/kernel/util/working_mobile.go index 9d8fb3cea..2dda1c439 100644 --- a/kernel/util/working_mobile.go +++ b/kernel/util/working_mobile.go @@ -43,6 +43,8 @@ func BootMobile(container, appDir, workspaceBaseDir, lang string) { httpclient.SetUserAgent(UserAgent) Lang = lang + logging.LogInfof("workspace base dir [%s]", workspaceBaseDir) + WorkingDir = filepath.Join(appDir, "app") HomeDir = filepath.Join(workspaceBaseDir, "home") userHomeConfDir := filepath.Join(HomeDir, ".config", "siyuan")