2024-04-29 14:22:50 -06:00
|
|
|
//go:build unix && !darwin
|
|
|
|
package nasin
|
|
|
|
|
|
|
|
import "git.tebibyte.media/tomo/xdg/basedir"
|
|
|
|
|
|
|
|
func userDataDir () (string, error) {
|
|
|
|
return basedir.DataHome()
|
|
|
|
}
|
|
|
|
|
2024-08-22 11:37:38 -06:00
|
|
|
func systemDataDirs () ([]string, error) {
|
|
|
|
return basedir.DataDirs()
|
|
|
|
}
|
|
|
|
|
2024-04-29 14:22:50 -06:00
|
|
|
func userConfigDir () (string, error) {
|
|
|
|
return basedir.ConfigHome()
|
|
|
|
}
|
|
|
|
|
2024-08-22 11:37:38 -06:00
|
|
|
func systemConfigDirs () ([]string, error) {
|
|
|
|
return basedir.ConfigDirs()
|
|
|
|
}
|
|
|
|
|
2024-04-29 14:22:50 -06:00
|
|
|
func userCacheDir () (string, error) {
|
|
|
|
return basedir.CacheHome()
|
|
|
|
}
|