summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2023-01-07 19:01:50 +0100
committerRobert Günzler <r@gnzler.io>2023-01-07 19:01:50 +0100
commit0f334e28819e3590aa07e7ec0fb614b50989555c (patch)
tree3441d1eb30781ae23ea5c0d62179196455650c6b
parentf7edee9e9cd37c4f7cec0c4538faddcf035de37f (diff)
bin: make mailsync use clear-notification
Signed-off-by: Robert Günzler <r@gnzler.io>
-rwxr-xr-xbin/mailsync (renamed from bin/hibiki/mailsync)8
1 files changed, 1 insertions, 7 deletions
diff --git a/bin/hibiki/mailsync b/bin/mailsync
index 2009474..0fcb43b 100755
--- a/bin/hibiki/mailsync
+++ b/bin/mailsync
@@ -129,16 +129,10 @@ run_sync() {
 	mbsync_args=
 	[ -n "${verbose}" ] && mbsync_args="--verbose"
 	mbsync $mbsync_args --config="$HOME/.config/mbsyncrc" "$acct"
+	clear-notification "$id"
 	# create cachefile
 	touch "${cachefile}.${acct}"
 
-	# clear notification
-	gdbus call --session \
-		--dest org.freedesktop.Notifications \
-		--object-path /org/freedesktop/Notifications \
-		--method org.freedesktop.Notifications.CloseNotification \
-		"$id" >/dev/null
-
 	# index new messages
 	command notmuch >/dev/null 2>&1 && notmuch new
 }