mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-05-02 16:19:41 -05:00
@@ -21,7 +21,6 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/88250/gulu"
|
||||
@@ -43,8 +42,6 @@ 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")
|
||||
@@ -141,12 +138,8 @@ func initWorkspaceDirMobile(workspaceBaseDir string) {
|
||||
WorkspaceDir = defaultWorkspaceDir
|
||||
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 {
|
||||
logging.LogErrorf("write workspace conf [%s] failed: %s", workspaceConf, err)
|
||||
os.Exit(logging.ExitCodeInitWorkspaceErr)
|
||||
|
||||
Reference in New Issue
Block a user