Skip to content

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

:art: Support HarmonyOS NEXT system

Danieldcf77055524d
diff --git a/kernel/harmony/kernel.go b/kernel/harmony/kernel.go
index 7527d4ac47..fc9828997f 100644
--- a/kernel/harmony/kernel.go
+++ b/kernel/harmony/kernel.go
@@ -45,7 +45,6 @@ func StartKernel(container, appDir, workspaceBaseDir, timezoneID, localIPs, lang
util.Mode = "prod"
util.MobileOSVer = C.GoString(osVer)
util.LocalIPs = strings.Split(C.GoString(localIPs), ",")
- filelock.Container = util.ContainerHarmony
util.BootMobile(C.GoString(container), C.GoString(appDir), C.GoString(workspaceBaseDir), C.GoString(lang))
model.InitConf()
diff --git a/kernel/util/working_mobile.go b/kernel/util/working_mobile.go
index e54a29abd2..541b3d055d 100644
--- a/kernel/util/working_mobile.go
+++ b/kernel/util/working_mobile.go
@@ -25,6 +25,7 @@ import (
"github.com/88250/gulu"
figure "github.com/common-nighthawk/go-figure"
+ "github.com/siyuan-note/filelock"
"github.com/siyuan-note/httpclient"
"github.com/siyuan-note/logging"
)
@@ -36,6 +37,7 @@ func BootMobile(container, appDir, workspaceBaseDir, lang string) {
initHttpClient()
ServerPort = FixedPort
Container = container
+ filelock.Container = Container
UserAgent = UserAgent + " " + Container + "/" + runtime.GOOS
httpclient.SetUserAgent(UserAgent)
Lang = lang