Skip to content

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

:art: https://github.com/siyuan-note/siyuan/pull/17361

Daniel1d44086109c7
diff --git a/kernel/util/runtime.go b/kernel/util/runtime.go
index 8eccc1b7c2..3e610db9f1 100644
--- a/kernel/util/runtime.go
+++ b/kernel/util/runtime.go
@@ -155,7 +155,7 @@ func getWorkspaceDriveType() string {
for _, disk := range block.Disks {
for _, partition := range disk.Partitions {
- if strings.HasPrefix(WorkspaceDir, partition.MountPoint) {
+ if IsSubPath(partition.MountPoint, WorkspaceDir) {
return partition.Disk.DriveType.String()
}
}