diff --git a/kernel/util/working.go b/kernel/util/working.go index 770ff5561..7fb9014a3 100644 --- a/kernel/util/working.go +++ b/kernel/util/working.go @@ -214,6 +214,16 @@ func initWorkspaceDir(workspaceArg string) { } } else { workspacePaths, _ = ReadWorkspacePaths() + var tmp []string + for _, workspacePath := range workspacePaths { + if IsCloudDrivePath(workspacePath) { + logging.LogWarnf("skip the cloud drive path [%s]", workspacePath) + continue + } + tmp = append(tmp, workspacePath) + } + workspacePaths = tmp + if 0 < len(workspacePaths) { // 取最后一个(也就是最近打开的)工作空间 WorkspaceDir = workspacePaths[len(workspacePaths)-1]