mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Set the default workspace path to ~/SiYuan/ on the desktop end https://github.com/siyuan-note/siyuan/issues/8602
This commit is contained in:
parent
ba50a9fca6
commit
134fd5e957
1 changed files with 2 additions and 2 deletions
|
|
@ -189,11 +189,11 @@ func initWorkspaceDir(workspaceArg string) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultWorkspaceDir := filepath.Join(HomeDir, "Documents", "SiYuan")
|
defaultWorkspaceDir := filepath.Join(HomeDir, "SiYuan")
|
||||||
if gulu.OS.IsWindows() {
|
if gulu.OS.IsWindows() {
|
||||||
// 改进 Windows 端默认工作空间路径 https://github.com/siyuan-note/siyuan/issues/5622
|
// 改进 Windows 端默认工作空间路径 https://github.com/siyuan-note/siyuan/issues/5622
|
||||||
if userProfile := os.Getenv("USERPROFILE"); "" != userProfile {
|
if userProfile := os.Getenv("USERPROFILE"); "" != userProfile {
|
||||||
defaultWorkspaceDir = filepath.Join(userProfile, "Documents", "SiYuan")
|
defaultWorkspaceDir = filepath.Join(userProfile, "SiYuan")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue