Skip to content

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

:art: Improve boot

Daniel200499aad41c
diff --git a/kernel/model/conf.go b/kernel/model/conf.go
index 2de6e212d8..e5bb9f2683 100644
--- a/kernel/model/conf.go
+++ b/kernel/model/conf.go
@@ -389,6 +389,9 @@ func InitConf() {
}
util.SetNetworkProxy(Conf.System.NetworkProxy.String())
+
+ go util.InitPandoc()
+ go util.InitTesseract()
}
func initLang() {
diff --git a/kernel/util/pandoc.go b/kernel/util/pandoc.go
index ca8f3279e0..845bb0484a 100644
--- a/kernel/util/pandoc.go
+++ b/kernel/util/pandoc.go
@@ -82,7 +82,7 @@ var (
PandocBinPath string // Pandoc 可执行文件路径
)
-func initPandoc() {
+func InitPandoc() {
if ContainerStd != Container {
return
}
diff --git a/kernel/util/tesseract.go b/kernel/util/tesseract.go
index 058b93061f..13ac6ed007 100644
--- a/kernel/util/tesseract.go
+++ b/kernel/util/tesseract.go
@@ -129,7 +129,7 @@ func Tesseract(imgAbsPath string) string {
return ret
}
-func initTesseract() {
+func InitTesseract() {
ver := getTesseractVer()
if "" == ver {
return
diff --git a/kernel/util/working.go b/kernel/util/working.go
index e4d5d6be2f..b235e6a86b 100644
--- a/kernel/util/working.go
+++ b/kernel/util/working.go
@@ -110,8 +110,6 @@ func Boot() {
}
initPathDir()
- go initPandoc()
- go initTesseract()
bootBanner := figure.NewColorFigure("SiYuan", "isometric3", "green", true)
logging.LogInfof("\n" + bootBanner.String())