aboutsummaryrefslogtreecommitdiff
path: root/gomuks.go
diff options
context:
space:
mode:
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),
}