瀏覽代碼

fix notifications on Xwayland

tags/3.2.1
Clément DOUIN 3 年之前
父節點
當前提交
0ff14fee55
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 69C9B9CFFDEE2DEF
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      bin/mailsync

+ 1
- 1
bin/mailsync 查看文件

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


Loading…
取消
儲存