From 2105ef6ffad53db21486c8b458df8aef530e1e81 Mon Sep 17 00:00:00 2001 From: Mendel Elmaleh Date: Tue, 13 Aug 2024 23:24:19 +0100 Subject: [PATCH] Change default config path --- types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types.go b/types.go index fe47dff..05e26b1 100644 --- a/types.go +++ b/types.go @@ -50,12 +50,12 @@ func (a Account) User(card string) string { func ParseConfig(path string) (config Config, err error) { // default config path if path == "" { - configpath, err := os.UserConfigDir() + configpath, err := os.UserHomeDir() if err != nil { return config, err } - path = filepath.Join(configpath, "pfin", "statements", "config.toml") + path = filepath.Join(configpath, "statements", "config.toml") } data, err := os.ReadFile(path) -- 2.45.2