diff options
author | Tulir Asokan <tulir@maunium.net> | 2019-04-06 10:57:24 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2019-04-06 10:57:24 +0300 |
commit | 8c1682b225300d055fba72106f07a0fc1fa7dfc5 (patch) | |
tree | 0266f572a59c18c0469694a8b63daa12540ca433 /gomuks.go | |
parent | 7ad2103f8f2c9b7e3d12554634a68db973a05b36 (diff) |
Use XDG config and cache home
Diffstat (limited to 'gomuks.go')
-rw-r--r-- | gomuks.go | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -19,7 +19,6 @@ package main import ( "os" "os/signal" - "path/filepath" "syscall" "time" @@ -39,9 +38,7 @@ type Gomuks struct { // NewGomuks creates a new Gomuks instance with everything initialized, // but does not start it. -func NewGomuks(uiProvider ifc.UIProvider) *Gomuks { - configDir := filepath.Join(os.Getenv("HOME"), ".config/gomuks") - cacheDir := filepath.Join(os.Getenv("HOME"), ".cache/gomuks") +func NewGomuks(uiProvider ifc.UIProvider, configDir, cacheDir string) *Gomuks { gmx := &Gomuks{ stop: make(chan bool, 1), } |