aboutsummaryrefslogtreecommitdiff
path: root/gomuks.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2019-04-06 10:57:24 +0300
committerTulir Asokan <tulir@maunium.net>2019-04-06 10:57:24 +0300
commit8c1682b225300d055fba72106f07a0fc1fa7dfc5 (patch)
tree0266f572a59c18c0469694a8b63daa12540ca433 /gomuks.go
parent7ad2103f8f2c9b7e3d12554634a68db973a05b36 (diff)
Use XDG config and cache home
Diffstat (limited to 'gomuks.go')
-rw-r--r--gomuks.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/gomuks.go b/gomuks.go
index 8d5ac76..7c307b9 100644
--- a/gomuks.go
+++ b/gomuks.go
@@ -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),
}