🎨 Improve boot

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-12-09 20:26:23 +08:00
parent e1aa372f87
commit 4ee7497afd
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 4 additions and 0 deletions

View file

@ -339,6 +339,8 @@ func ReadWorkspacePaths() (ret []string, err error) {
return return
} }
logging.LogInfof("read data [%s] from workspace conf [%s]", string(data), workspaceConf)
if err = gulu.JSON.UnmarshalJSON(data, &ret); err != nil { if err = gulu.JSON.UnmarshalJSON(data, &ret); err != nil {
msg := fmt.Sprintf("unmarshal workspace conf [%s] failed: %s", workspaceConf, err) msg := fmt.Sprintf("unmarshal workspace conf [%s] failed: %s", workspaceConf, err)
logging.LogErrorf(msg) logging.LogErrorf(msg)

View file

@ -43,6 +43,8 @@ func BootMobile(container, appDir, workspaceBaseDir, lang string) {
httpclient.SetUserAgent(UserAgent) httpclient.SetUserAgent(UserAgent)
Lang = lang Lang = lang
logging.LogInfof("workspace base dir [%s]", workspaceBaseDir)
WorkingDir = filepath.Join(appDir, "app") WorkingDir = filepath.Join(appDir, "app")
HomeDir = filepath.Join(workspaceBaseDir, "home") HomeDir = filepath.Join(workspaceBaseDir, "home")
userHomeConfDir := filepath.Join(HomeDir, ".config", "siyuan") userHomeConfDir := filepath.Join(HomeDir, ".config", "siyuan")