Преглед на файлове

Merge pull request #846 from Kr1ss-XD/fix-845

fix notifications when the Xorg process is just X
pull/850/head
Luke Smith преди 1 година
committed by GitHub
родител
ревизия
cc92d1f484
No known key found for this signature in database GPG ключ ID: 4AEE18F83AFDEB23
променени са 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


Зареждане…
Отказ
Запис