about summary refs log tree commit diff stats
path: root/aerc.go
diff options
context:
space:
mode:
Diffstat (limited to 'aerc.go')
-rw-r--r--aerc.go7
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)