Просмотр исходного кода

Merge pull request #646 from soywod/master

Fix notifications on Wayland-based environments
tags/3.2.1
Luke Smith 3 лет назад
committed by GitHub
Родитель
Сommit
5e6c8b48f1
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: 4AEE18F83AFDEB23
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."


Загрузка…
Отмена
Сохранить