From e8ac568b3d564d168c40180b85042479237d4b5b Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 24 Jun 2023 11:06:42 +0800 Subject: [PATCH] :art: Set the default workspace path to `~/SiYuan/` on the desktop end https://github.com/siyuan-note/siyuan/issues/8602 --- .../20210808180303-xaduj2o/20200924100717-yzwzn64.sy | 2 +- .../20210808180321-hbvl5c2/20200828105441-r76vmu5.sy | 2 +- .../20211226121203-rjjngpz/20211226122358-hctqcn5.sy | 2 +- kernel/util/working.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20200924100717-yzwzn64.sy b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20200924100717-yzwzn64.sy index eb98ef277..755be3515 100644 --- a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20200924100717-yzwzn64.sy +++ b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20200924100717-yzwzn64.sy @@ -44,7 +44,7 @@ { "Type": "NodeTextMark", "TextMarkType": "code", - "TextMarkTextContent": "~/Documents/SiYuan/" + "TextMarkTextContent": "~/SiYuan/" }, { "Type": "NodeText", diff --git a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20200828105441-r76vmu5.sy b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20200828105441-r76vmu5.sy index 3a32b08b9..3ec0a9254 100644 --- a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20200828105441-r76vmu5.sy +++ b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20200828105441-r76vmu5.sy @@ -56,7 +56,7 @@ "id": "" }, "TextMarkType": "code", - "TextMarkTextContent": "~/Documents/SiYuan/" + "TextMarkTextContent": "~/SiYuan/" }, { "Type": "NodeText", diff --git a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226122358-hctqcn5.sy b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226122358-hctqcn5.sy index 3e8b95c24..a45a0e6ca 100644 --- a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226122358-hctqcn5.sy +++ b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226122358-hctqcn5.sy @@ -55,7 +55,7 @@ "id": "" }, "TextMarkType": "code", - "TextMarkTextContent": "~/Documents/SiYuan/" + "TextMarkTextContent": "~/SiYuan/" }, { "Type": "NodeText", diff --git a/kernel/util/working.go b/kernel/util/working.go index 781830c35..608fa43f2 100644 --- a/kernel/util/working.go +++ b/kernel/util/working.go @@ -57,7 +57,7 @@ func Boot() { initMime() initHttpClient() - workspacePath := flag.String("workspace", "", "dir path of the workspace, default to ~/Documents/SiYuan/") + workspacePath := flag.String("workspace", "", "dir path of the workspace, default to ~/SiYuan/") wdPath := flag.String("wd", WorkingDir, "working directory of SiYuan") port := flag.String("port", "0", "port of the HTTP server") readOnly := flag.String("readonly", "false", "read-only mode")