mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve boot
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
d34cd984d8
commit
e1132eb222
1 changed files with 0 additions and 7 deletions
|
|
@ -21,7 +21,6 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
"runtime"
|
||||||
"strings"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/88250/gulu"
|
"github.com/88250/gulu"
|
||||||
|
|
@ -43,8 +42,6 @@ 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")
|
||||||
|
|
@ -141,12 +138,8 @@ func initWorkspaceDirMobile(workspaceBaseDir string) {
|
||||||
WorkspaceDir = defaultWorkspaceDir
|
WorkspaceDir = defaultWorkspaceDir
|
||||||
workspacePaths = append(workspacePaths, WorkspaceDir)
|
workspacePaths = append(workspacePaths, WorkspaceDir)
|
||||||
}
|
}
|
||||||
|
|
||||||
logging.LogInfof("2 read workspace paths [%s]", strings.Join(workspacePaths, ","))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
logging.LogInfof("3 read workspace paths [%s]", strings.Join(workspacePaths, ","))
|
|
||||||
|
|
||||||
if err := WriteWorkspacePaths(workspacePaths); err != nil {
|
if err := WriteWorkspacePaths(workspacePaths); err != nil {
|
||||||
logging.LogErrorf("write workspace conf [%s] failed: %s", workspaceConf, err)
|
logging.LogErrorf("write workspace conf [%s] failed: %s", workspaceConf, err)
|
||||||
os.Exit(logging.ExitCodeInitWorkspaceErr)
|
os.Exit(logging.ExitCodeInitWorkspaceErr)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue