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: Improve the initialization interface to select the workspace cloud disk path prompt Fix https://github.com/siyuan-note/siyuan/issues/7975
Liang Dinge9f3bdc47652
diff --git a/app/electron/init.html b/app/electron/init.htmlindex e8a02a70aa..f80f65e9b8 100644--- a/app/electron/init.html+++ b/app/electron/init.html@@ -358,10 +358,21 @@const {ipcRenderer} = require('electron')const fs = require('fs')const initPath = result.filePaths[0]+ const absPathLower = initPath.toLowerCase()+ if (isICloudPath(absPathLower)) {+ let msg = '⚠️ This folder is under the iCloud sync path, please change another path'+ if ('zh_CN' === currentLang) {+ msg = '⚠️ 该文件夹位于 iCloud 同步路径下,请更换其他路径'+ }+ alert(msg)+ return+ }++if (isCloudDrivePath(initPath)) {- let msg = '⚠️ This folder may be a cloud sync disk folder, please change to another path'+ let msg = '⚠️ The folder path can not contain onedrive, dropbox, google drive, pcloud and 坚果云, please change another path'if ('zh_CN' === currentLang) {- msg = '⚠️ 该文件夹可能是云同步盘文件夹,请更换其他路径'+ msg = '⚠️ 文件夹路径不能包含 onedrive、dropbox、google drive、pcloud 和 坚果云,请更换其他路径'}alert(msg)return@@ -388,10 +399,6 @@const isCloudDrivePath = (absPath) => {const absPathLower = absPath.toLowerCase()- if (isICloudPath(absPathLower)) {- return true- }-return -1 < absPathLower.indexOf("onedrive") || -1 < absPathLower.indexOf("dropbox") ||-1 < absPathLower.indexOf("google drive") || -1 < absPathLower.indexOf("pcloud") ||-1 < absPathLower.indexOf("坚果云")