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: Change the initial workspace path to ~/Library/Application Support/SiYuan on macOS https://github.com/siyuan-note/siyuan/issues/17095
Danielbcc9886518a4
diff --git a/app/electron/init.html b/app/electron/init.htmlindex 43b1b1634e..4bea0c317d 100644--- a/app/electron/init.html+++ b/app/electron/init.html@@ -437,7 +437,11 @@const path = require('path')const fs = require('fs')- const defaultWorkspace = path.join(decodeURIComponent(getSearch('home')), "SiYuan")+ let defaultWorkspace = path.join(decodeURIComponent(getSearch('home')), "SiYuan")+ if ("darwin" === process.platform) {+ // Change the initial workspace path to ~/Library/Application Support/SiYuan on macOS https://github.com/siyuan-note/siyuan/issues/17095+ defaultWorkspace = path.join(decodeURIComponent(getSearch('home')), "Application Support", "SiYuan")+ }if (!fs.existsSync(defaultWorkspace)) {fs.mkdirSync(defaultWorkspace, {mode: 0o755, recursive: true})}