mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
🎨 Change the initial workspace path to ~/Library/Application Support/SiYuan on macOS https://github.com/siyuan-note/siyuan/issues/17095
🐛 Default workspace data will be lost on macOS https://github.com/siyuan-note/siyuan/issues/17430 Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
@@ -261,6 +261,9 @@ func initWorkspaceDir(workspaceArg string) {
|
||||
if userProfile := os.Getenv("USERPROFILE"); "" != userProfile {
|
||||
defaultWorkspaceDir = filepath.Join(userProfile, "SiYuan")
|
||||
}
|
||||
} else if gulu.OS.IsDarwin() {
|
||||
// Change the initial workspace path to ~/Library/Application Support/SiYuan on macOS https://github.com/siyuan-note/siyuan/issues/17095
|
||||
defaultWorkspaceDir = filepath.Join(userHomeConfDir, "Library", "Application Support", "SiYuan")
|
||||
}
|
||||
|
||||
var workspacePaths []string
|
||||
|
||||
Reference in New Issue
Block a user