From 8204a34e5360d0370f9a0d94b049a3beaa72fb52 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 3 Jun 2017 21:44:05 +0200 Subject: loadConfig(): Load from real XDG config Instead of loading the config file I've been testing with in the local project directory, load the real one from XDG_CONFIG_HOME. --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.go') diff --git a/config.go b/config.go index 43f7689..126b123 100644 --- a/config.go +++ b/config.go @@ -67,7 +67,7 @@ func maybeWriteConfig() error { func loadConfig() error { config = Config{} - _, err := toml.DecodeFile("config2.toml", &config) + _, err := toml.DecodeFile(configFile(), &config) if err != nil { return err } -- cgit v1.2.3