An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Support minimize the main window after auto launch on Windows/macOS https://github.com/siyuan-note/siyuan/issues/11145
Danielfa897e91d57c
diff --git a/kernel/api/system.go b/kernel/api/system.goindex e8abad795c..18c235cf7a 100644--- a/kernel/api/system.go+++ b/kernel/api/system.go@@ -424,41 +424,6 @@ func setAutoLaunch(c *gin.Context) {autoLaunch := int(arg["autoLaunch"].(float64))model.Conf.System.AutoLaunch2 = autoLaunchmodel.Conf.Save()-- windowStateConf := filepath.Join(util.ConfDir, "windowState.json")- windowState := map[string]interface{}{}- if gulu.File.IsExist(windowStateConf) {- succ := false- const maxRetry = 7- for i := 0; i < maxRetry; i++ {- data, err := os.ReadFile(windowStateConf)- if nil != err {- logging.LogErrorf("read [windowState.json] failed [%d/%d]: %s", i, maxRetry, err)- time.Sleep(time.Second)- } else {- if err = gulu.JSON.UnmarshalJSON(data, &windowState); nil != err {- logging.LogErrorf("unmarshal [windowState.json] failed: %s", err)- } else {- succ = true- break- }- }- }- if !succ {- logging.LogErrorf("read [windowState.json] failed")- }- }- windowState["autoLaunch"] = autoLaunch-- data, err := gulu.JSON.MarshalJSON(windowState)- if nil != err {- logging.LogErrorf("marshal [windowState.json] failed: %s", err)- return- }-- if err = gulu.File.WriteFileSafer(windowStateConf, data, 0644); nil != err {- logging.LogErrorf("create [windowState.json] failed: %s", err)- }}func setDownloadInstallPkg(c *gin.Context) {diff --git a/kernel/model/conf.go b/kernel/model/conf.goindex e9928a0d15..1dbdd26e48 100644--- a/kernel/model/conf.go+++ b/kernel/model/conf.go@@ -112,13 +112,6 @@ func (conf *AppConf) SetUser(user *conf.User) {func InitConf() {initLang()- windowStateConf := filepath.Join(util.ConfDir, "windowState.json")- if !gulu.File.IsExist(windowStateConf) {- if err := gulu.File.WriteFileSafer(windowStateConf, []byte("{}"), 0644); nil != err {- logging.LogErrorf("create [windowState.json] failed: %s", err)- }- }-Conf = &AppConf{LogLevel: "debug", m: &sync.Mutex{}}confPath := filepath.Join(util.ConfDir, "conf.json")if gulu.File.IsExist(confPath) {