summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/bookpipeline/main.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/cmd/bookpipeline/main.go b/cmd/bookpipeline/main.go
index 0bd1eb2..9bc3378 100644
--- a/cmd/bookpipeline/main.go
+++ b/cmd/bookpipeline/main.go
@@ -90,11 +90,7 @@ type mailSettings struct {
}
func getMailSettings() (mailSettings, error) {
- confdir, err := os.UserConfigDir()
- if err != nil {
- return mailSettings{}, fmt.Errorf("Error finding UserConfigDir for mailsettings: %v", err)
- }
- p := filepath.Join(confdir, "bookpipeline", "mailsettings")
+ p := filepath.Join(os.Getenv("HOME"), ".config", "bookpipeline", "mailsettings")
b, err := ioutil.ReadFile(p)
if err != nil {
return mailSettings{}, fmt.Errorf("Error reading mailsettings from %s: %v", p, err)