mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 Improve boot
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
e1aa372f87
commit
4ee7497afd
2 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue