diff options
Diffstat (limited to 'paths')
| -rw-r--r-- | paths/paths.go | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/paths/paths.go b/paths/paths.go index b714a23..1e6e2f9 100644 --- a/paths/paths.go +++ b/paths/paths.go @@ -9,13 +9,14 @@ import ( ) var ( - Ifs string - ConfigDir = Empty() - CacheDir = Empty() - ContextsFile = Empty() - HomeDir = Empty() - System = Empty() - This = "pik" + Ifs string + ConfigDir = Empty() + CacheDir = Empty() + ContextsFile = Empty() + HomeDir = Empty() + System = Empty() + This = "pik" + ContextsFileName = "contexts" ) var Paths = []*Path{ @@ -50,7 +51,7 @@ func (p *paths) Init() error { HomeDir.Set(xdg.Home) CacheDir.Set(filepath.Join(xdg.CacheHome, This)) ConfigDir.Set(filepath.Join(xdg.ConfigHome, This)) - ContextsFile.Set(path.Join(CacheDir.String(), "contexts")) + ContextsFile.Set(path.Join(CacheDir.String(), ContextsFileName)) System.Set(path.Join(ConfigDir.String())) Ifs = os.Getenv("IFS") |
