go-pkg/xdg/path_windows.go

33 lines
1.0 KiB
Go
Raw Permalink Normal View History

2023-07-12 12:43:25 -06:00
//go:build windows
// +build windows
// SPDX-FileCopyrightText: 2023 Jon Lundy <jon@xuu.cc>
// SPDX-License-Identifier: BSD-3-Clause
2023-07-12 12:43:25 -06:00
package xdg
func literal(name string) string {
return "%" + name + "%"
}
const (
defaultDataHome = `%LOCALAPPDATA%`
defaultDataDirs = `%APPDATA%\Roaming;%ProgramData%`
defaultConfigHome = `%LOCALAPPDATA%`
defaultConfigDirs = `%ProgramData%`
defaultCacheHome = `%LOCALAPPDATA%\cache`
defaultStateHome = `%LOCALAPPDATA%\state`
defaultRuntime = `%LOCALAPPDATA%`
defaultDesktop = `%USERPROFILE%\Desktop`
defaultDownload = `%USERPROFILE%\Downloads`
defaultDocuments = `%USERPROFILE%\Documents`
defaultMusic = `%USERPROFILE%\Music`
defaultPictures = `%USERPROFILE%\Pictures`
defaultVideos = `%USERPROFILE%\Videos`
defaultTemplates = `%USERPROFILE%\Templates`
defaultPublic = `%USERPROFILE%\Public`
defaultApplicationDirs = `%APPDATA%\Roaming\Microsoft\Windows\Start Menu\Programs`
defaultFontDirs = `%windir%\Fonts;%LOCALAPPDATA%\Microsoft\Windows\Fonts`
)