F-Droid desktop client
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
359 B

// Copyright (c) 2015, Daniel Martí <mvdan@mvdan.cc>
// See LICENSE for licensing information
// +build dragonfly freebsd linux netbsd openbsd
package basedir
var (
cacheDir = firstGetenv(".cache", "XDG_CACHE_HOME")
dataDir = firstGetenv(".config", "XDG_CONFIG_HOME")
)
func cache() string {
return cacheDir
}
func data() string {
return dataDir
}