aboutsummaryrefslogtreecommitdiffstats
path: root/aerc.go
diff options
context:
space:
mode:
authorPedro L. Ramos <pedrolorgaramos@tecnico.ulisboa.pt>2019-07-13 18:42:22 +0100
committerDrew DeVault <sir@cmpwn.com>2019-07-15 09:42:03 -0400
commitd85f671bdf90dbdd725db88e5d6970630e36f9f1 (patch)
treef4cb94081d12087cc6de04dacd8a44157ccab2bb /aerc.go
parent9bf1a0418ba7fa817c4704d363bc4350ef883b59 (diff)
downloadaerc-d85f671bdf90dbdd725db88e5d6970630e36f9f1.tar.gz
71: Allow user to change config options at runtime
There is a LoadConf and a LoadConfFromFile. LoadConfFromFile reads the iniFile into memory and and calls LoadConf, which executes the old parsing commands from LoadConf (old func). The remaining of the LoadConfFromFile is the same as the old OldConf.
Diffstat (limited to 'aerc.go')
-rw-r--r--aerc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/aerc.go b/aerc.go
index a248e18b..dafdd223 100644
--- a/aerc.go
+++ b/aerc.go
@@ -121,7 +121,7 @@ func main() {
logger = log.New(logOut, "", log.LstdFlags)
logger.Println("Starting up aerc")
- conf, err := config.LoadConfig(nil, ShareDir)
+ conf, err := config.LoadConfigFromFile(nil, ShareDir)
if err != nil {
fmt.Printf("Failed to load config: %v\n", err)
os.Exit(1)