aboutsummaryrefslogtreecommitdiffstats
path: root/modules/communication/neomutt/neomutt-launcher.sh
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar@gmail.com>2026-09-24 05:16:08 +0530
committerArpit Chakladar <arpitchakladar@gmail.com>2026-09-24 05:16:08 +0530
commita6ad66572e9cc985d3123286b132605ba279b919 (patch)
tree52517cd294b3d024068864e751e71b65eb667806 /modules/communication/neomutt/neomutt-launcher.sh
parenta0213d48a3fea3b2209c36390331de101fb7575f (diff)
downloadhome-manager-config-a6ad66572e9cc985d3123286b132605ba279b919.tar.gz
home-manager-config-a6ad66572e9cc985d3123286b132605ba279b919.zip
feat(communication/neomutt): neomutt-sync daemon runs once after closing
Diffstat (limited to 'modules/communication/neomutt/neomutt-launcher.sh')
-rw-r--r--modules/communication/neomutt/neomutt-launcher.sh7
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/communication/neomutt/neomutt-launcher.sh b/modules/communication/neomutt/neomutt-launcher.sh
index 62cbe09..c13677f 100644
--- a/modules/communication/neomutt/neomutt-launcher.sh
+++ b/modules/communication/neomutt/neomutt-launcher.sh
@@ -1,12 +1,7 @@
#!/usr/bin/env bash
-# Wrapped neomutt: keeps the neomutt-sync systemd daemon alive for the
-# lifetime of a neomutt session.
+# Starts the neomutt-sync daemon before starting neomutt
set -uo pipefail
systemctl --user start neomutt-sync.service || true
-stop_service() {
- pgrep -x neomutt >/dev/null || systemctl --user stop neomutt-sync.service || true
-}
-trap stop_service EXIT
"@@NEOMUTT_BIN@@" "$@"