2 커밋

작성자 SHA1 메시지 날짜
  Luke Smith cc92d1f484
Merge pull request #846 from Kr1ss-XD/fix-845 1 년 전
  Kr1ss f2014408b9
fix notifications when the Xorg process is just X 1 년 전
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
분할 보기
  1. +1
    -1
      bin/mailsync

+ 1
- 1
bin/mailsync 파일 보기

@@ -42,7 +42,7 @@ case "$(uname)" in
*systemd*|*openrc*) export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus ;;
esac
# remember if a display server is running since `ps` doesn't always contain a display
pgrepoutput="$(pgrep -a X\(org\|wayland\))"
pgrepoutput="$(pgrep -ax X\(\|org\|wayland\))"
displays="$(echo "$pgrepoutput" | grep -wo "[0-9]*:[0-9]\+" | sort -u)"
notify() { [ -n "$pgrepoutput" ] && for x in ${displays:-0:}; do
export DISPLAY=$x


불러오는 중...
취소
저장