2023-07-12 12:43:25 -06:00
|
|
|
//go:build linux
|
|
|
|
// +build linux
|
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 = "~/.local/share"
|
|
|
|
defaultDataDirs = "/usr/local/share:/usr/share"
|
|
|
|
defaultConfigHome = "~/.config"
|
|
|
|
defaultConfigDirs = "/etc/xdg"
|
|
|
|
defaultCacheHome = "~/.local/cache"
|
|
|
|
defaultStateHome = "~/.local/state"
|
|
|
|
defaultRuntime = "/run/user/$UID"
|
|
|
|
|
|
|
|
defaultDesktop = "~/Desktop"
|
|
|
|
defaultDownload = "~/Downloads"
|
|
|
|
defaultDocuments = "~/Documents"
|
|
|
|
defaultMusic = "~/Music"
|
|
|
|
defaultPictures = "~/Pictures"
|
|
|
|
defaultVideos = "~/Videos"
|
|
|
|
defaultTemplates = "~/Templates"
|
|
|
|
defaultPublic = "~/Public"
|
|
|
|
|
|
|
|
defaultApplicationDirs = "~/Applications:/Applications"
|
|
|
|
defaultFontDirs = "~/.local/share/fonts:/usr/local/share/fonts:/usr/share/fonts:~/.fonts"
|
|
|
|
)
|