aboutsummaryrefslogtreecommitdiffstats
path: root/config/hooks.go
diff options
context:
space:
mode:
authorMoritz Poldrack <git@moritz.sh>2023-03-15 22:40:38 +0100
committerRobin Jarry <robin@jarry.cc>2023-04-01 01:01:09 +0200
commitf10b184eb34634b9642fa83ef0f1cd8d0687a4af (patch)
tree8806be0073294a1d6542fa0447d8fee8e12230e5 /config/hooks.go
parent2fef0f4a60c8026c156ad8d75078bccde6a540d8 (diff)
downloadaerc-f10b184eb34634b9642fa83ef0f1cd8d0687a4af.tar.gz
hooks: add aerc-startup hook
Add a hook to run when aerc starts up. The environment is supplemented with aerc version and the path to its binary. References: https://todo.sr.ht/~rjarry/aerc/136 References: https://todo.sr.ht/~rjarry/aerc/139 Signed-off-by: Moritz Poldrack <git@moritz.sh> Signed-off-by: Robin Jarry <robin@jarry.cc> Tested-by: Bence Ferdinandy <bence@ferdinandy.com>
Diffstat (limited to 'config/hooks.go')
-rw-r--r--config/hooks.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/hooks.go b/config/hooks.go
index 9bbd9031..41fc8026 100644
--- a/config/hooks.go
+++ b/config/hooks.go
@@ -8,6 +8,7 @@ import (
)
type HooksConfig struct {
+ AercStartup string `ini:"aerc-startup"`
MailReceived string `ini:"mail-received"`
}