Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: The Microsoft Store edition hides the automatic update option https://github.com/siyuan-note/siyuan/issues/17997

Daniel9cf1d0bf4c94
diff --git a/kernel/util/working.go b/kernel/util/working.go
index 3dbe35d8d5..9f5226247e 100644
--- a/kernel/util/working.go
+++ b/kernel/util/working.go
@@ -183,14 +183,15 @@ func BootWithFlags(workspacePath, wdPath, port, readOnly, accessAuthCode, lang,
ServerPort = FixedPort
}
- msStoreFilePath := filepath.Join(WorkingDir, "ms-store")
- ISMicrosoftStore = gulu.File.IsExist(msStoreFilePath)
-
UserAgent = UserAgent + " " + Container + "/" + runtime.GOOS
httpclient.SetUserAgent(UserAgent)
InitWorkspace(workspacePath, wdPath)
+ // 必须在 InitWorkspace 之后:此时 WorkingDir 才被 --wd 参数修正为真实工作目录(如 app\resources),否则会用进程 CWD 误判微软商店版标记文件
+ msStoreFilePath := filepath.Join(WorkingDir, "ms-store")
+ ISMicrosoftStore = gulu.File.IsExist(msStoreFilePath)
+
SSL = ssl
logging.SetLogPath(LogPath)