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: 使用第三方同步盘时弹出提示并退出内核 https://github.com/siyuan-note/siyuan/issues/7683
Liang Dingf2f60cf9fe58
diff --git a/app/electron/init.html b/app/electron/init.htmlindex 144e6de47a..ea02837a4d 100644--- a/app/electron/init.html+++ b/app/electron/init.html@@ -355,6 +355,11 @@const {ipcRenderer} = require('electron')const fs = require('fs')const initPath = result.filePaths[0]+ if (isCloudDrivePath(initPath)) {+ alert('⚠️ This folder may be a cloud sync disk folder, please change to a local folder')+ return+ }+if (!fs.existsSync(initPath)) {fs.mkdirSync(initPath, {mode: 0o755, recursive: true})}@@ -366,6 +371,12 @@})})})++ const isCloudDrivePath = (absPath) => {+ const absPathLower = absPath.toLowerCase()+ return -1 < absPathLower.indexOf("onedrive") || -1 < absPathLower.indexOf("dropbox") ||+ -1 < absPathLower.indexOf("google drive") || -1 < absPathLower.indexOf("pcloud")+ }</script></body></html>