aboutsummaryrefslogtreecommitdiff
path: root/gomuks.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-04-30 12:06:22 +0300
committerTulir Asokan <tulir@maunium.net>2018-04-30 12:06:22 +0300
commitd8dba100e041f6e6fc7cdd546ae161d5e52f0582 (patch)
treeec046917b74ec1e35e9944aa50f4155ed8c9f8e9 /gomuks.go
parentcc929ba89959b98a18252da357415d942d240854 (diff)
Move cache to ~/.cache/gomuks by default. Fixes #39
Diffstat (limited to 'gomuks.go')
-rw-r--r--gomuks.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/gomuks.go b/gomuks.go
index 5f5d74b..6582ee3 100644
--- a/gomuks.go
+++ b/gomuks.go
@@ -41,11 +41,12 @@ type Gomuks struct {
// 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")
gmx := &Gomuks{
stop: make(chan bool, 1),
}
- gmx.config = config.NewConfig(configDir)
+ gmx.config = config.NewConfig(configDir, cacheDir)
gmx.ui = uiProvider(gmx)
gmx.matrix = matrix.NewContainer(gmx)
gmx.ui.Init()