summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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
 }