mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-04 20:00:17 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
b32a719772
commit
6071ced2af
1 changed files with 11 additions and 0 deletions
|
|
@ -380,6 +380,17 @@ func IsSensitivePath(p string) bool {
|
|||
}
|
||||
}
|
||||
|
||||
// Windows 开始启动菜单路径(小写比较)
|
||||
startMenuPrefixes := []string{
|
||||
strings.ToLower(filepath.Join(os.Getenv("APPDATA"), "Microsoft", "Windows", "Start Menu")),
|
||||
strings.ToLower(filepath.Join(os.Getenv("ProgramData"), "Microsoft", "Windows", "Start Menu")),
|
||||
}
|
||||
for _, sp := range startMenuPrefixes {
|
||||
if strings.HasPrefix(pp, sp) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
homePrefixes := []string{
|
||||
strings.ToLower(filepath.Join(HomeDir, ".ssh")),
|
||||
strings.ToLower(filepath.Join(HomeDir, ".config")),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue