diff options
author | Teddy Wing | 2017-06-03 21:44:05 +0200 |
---|---|---|
committer | Teddy Wing | 2017-06-03 21:44:05 +0200 |
commit | 8204a34e5360d0370f9a0d94b049a3beaa72fb52 (patch) | |
tree | 22c397a4063c86f3471dac158b623086efb5c94c | |
parent | aff5d59c5bf300e0fd706cff626c26fdd5ce0695 (diff) | |
download | timetasker-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.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 } |