浏览代码

Merge pull request #640 from Maugrift/master

Fix duplicate mailsync notifications
tags/3.2.1
Luke Smith 3 年前
committed by GitHub
父节点
当前提交
cafc945138
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      bin/mailsync

+ 1
- 1
bin/mailsync 查看文件

@@ -44,7 +44,7 @@ case "$(uname)" in
messageinfo() { osascript -e "display notification with title \"📧 $from\" subtitle \"$subject\"" ;}
;;
*)
displays="$(pgrep -a Xorg | grep -wo "[0-9]*:[0-9]\+")"
displays="$(pgrep -a Xorg | grep -wo "[0-9]*:[0-9]\+" | uniq)"
notify() { for x in $displays; do
export DISPLAY=$x
notify-send --app-name="mutt-wizard" "mutt-wizard" "📬 $2 new mail(s) in \`$1\` account."


正在加载...
取消
保存