From 8c1682b225300d055fba72106f07a0fc1fa7dfc5 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 6 Apr 2019 10:57:24 +0300 Subject: Use XDG config and cache home --- gomuks.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gomuks.go') 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), } -- cgit v1.2.3