2023-07-12 12:43:25 -06:00
|
|
|
//go:build windows
|
|
|
|
// +build windows
|
2023-09-15 13:24:51 -06:00
|
|
|
// 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`
|
|
|
|
)
|