aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2017-06-03 21:44:05 +0200
committerTeddy Wing2017-06-03 21:44:05 +0200
commit8204a34e5360d0370f9a0d94b049a3beaa72fb52 (patch)
tree22c397a4063c86f3471dac158b623086efb5c94c
parentaff5d59c5bf300e0fd706cff626c26fdd5ce0695 (diff)
downloadtimetasker-8204a34e5360d0370f9a0d94b049a3beaa72fb52.tar.bz2
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.
-rw-r--r--config.go2
1 files changed, 1 insertions, 1 deletions
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
}