diff options
Diffstat (limited to 'vendor/github.com/OpenPeeDeeP/xdg/xdg_bsd.go')
-rw-r--r-- | vendor/github.com/OpenPeeDeeP/xdg/xdg_bsd.go | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/vendor/github.com/OpenPeeDeeP/xdg/xdg_bsd.go b/vendor/github.com/OpenPeeDeeP/xdg/xdg_bsd.go deleted file mode 100644 index ea99f2fd0..000000000 --- a/vendor/github.com/OpenPeeDeeP/xdg/xdg_bsd.go +++ /dev/null @@ -1,32 +0,0 @@ -// +build freebsd openbsd netbsd - -// Copyright (c) 2017, OpenPeeDeeP. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package xdg - -import ( - "os" - "path/filepath" -) - -func (o *osDefaulter) defaultDataHome() string { - return filepath.Join(os.Getenv("HOME"), ".local", "share") -} - -func (o *osDefaulter) defaultDataDirs() []string { - return []string{"/usr/local/share/", "/usr/share/"} -} - -func (o *osDefaulter) defaultConfigHome() string { - return filepath.Join(os.Getenv("HOME"), ".config") -} - -func (o *osDefaulter) defaultConfigDirs() []string { - return []string{"/etc/xdg"} -} - -func (o *osDefaulter) defaultCacheHome() string { - return filepath.Join(os.Getenv("HOME"), ".cache") -} |