diff options
author | Tulir Asokan <tulir@maunium.net> | 2020-04-08 15:49:42 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2020-04-08 15:49:42 +0300 |
commit | 79b61b86c9b5cd403c5ff3efcaf5a7237a1c07c7 (patch) | |
tree | 521b0ed709cab428e463d15d69a3a6f40358853c /gomuks.go | |
parent | a6f6fb3ef22658508671296a31367a198205da99 (diff) |
Use $HOME/Downloads as default download directory
TODO: Get the default directory properly with XDG
Diffstat (limited to 'gomuks.go')
-rw-r--r-- | gomuks.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -38,12 +38,12 @@ type Gomuks struct { // NewGomuks creates a new Gomuks instance with everything initialized, // but does not start it. -func NewGomuks(uiProvider ifc.UIProvider, configDir, cacheDir string) *Gomuks { +func NewGomuks(uiProvider ifc.UIProvider, configDir, cacheDir, downloadDir string) *Gomuks { gmx := &Gomuks{ stop: make(chan bool, 1), } - gmx.config = config.NewConfig(configDir, cacheDir) + gmx.config = config.NewConfig(configDir, cacheDir, downloadDir) gmx.ui = uiProvider(gmx) gmx.matrix = matrix.NewContainer(gmx) |