diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-05-22 12:35:44 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-05-22 12:35:44 -0400 |
commit | f42724caf3b374df0fa4eb170b3527cd20814eed (patch) | |
tree | 6efdb42ce0423e25c172382565a3c317b836737b /aerc.go | |
parent | 80704f242206e56d4c07669a5ca42827c1d59b59 (diff) | |
download | aerc-f42724caf3b374df0fa4eb170b3527cd20814eed.tar.gz |
Install default configs to XDG config if not found
Diffstat (limited to 'aerc.go')
-rw-r--r-- | aerc.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/aerc.go b/aerc.go index 6f794c6..22df069 100644 --- a/aerc.go +++ b/aerc.go @@ -47,6 +47,11 @@ func getCommands(selected libui.Drawable) []*commands.Commands { } } +var ( + Prefix string + ShareDir string +) + func main() { var ( logOut io.Writer @@ -60,7 +65,7 @@ func main() { logger = log.New(logOut, "", log.LstdFlags) logger.Println("Starting up aerc") - conf, err := config.LoadConfig(nil) + conf, err := config.LoadConfig(nil, ShareDir) if err != nil { fmt.Printf("Failed to load config: %v\n", err) os.Exit(1) |