diff options
Diffstat (limited to 'modules/communication/neomutt/neomutt-launcher.sh')
| -rw-r--r-- | modules/communication/neomutt/neomutt-launcher.sh | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/modules/communication/neomutt/neomutt-launcher.sh b/modules/communication/neomutt/neomutt-launcher.sh index d677680..3caa9df 100644 --- a/modules/communication/neomutt/neomutt-launcher.sh +++ b/modules/communication/neomutt/neomutt-launcher.sh @@ -2,15 +2,12 @@ # Wrapped neomutt: keeps the neomutt-sync systemd daemon alive for the # lifetime of a neomutt session. set -uo pipefail -SYSTEMCTL='@@SYSTEMCTL@@' -PGREP='@@PGREP@@' -NEOMUTT='@@NEOMUTT@@' -"$SYSTEMCTL" --user start neomutt-sync.service || true +systemctl --user start neomutt-sync.service || true stop_service() { - "$PGREP" -x neomutt >/dev/null || "$SYSTEMCTL" --user stop neomutt-sync.service || true + pgrep -x neomutt >/dev/null || systemctl --user stop neomutt-sync.service || true } trap stop_service EXIT -export PATH="@@PROFILE_BIN@@:@@URLSCAN_BIN@@:$PATH" -"$NEOMUTT" "$@" +export PATH="@@PROFILE_BIN@@:$PATH" +neomutt "$@" |
