summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2023-02-14 13:40:17 +0000
committerGitHub <noreply@github.com>2023-02-14 13:40:17 +0000
commit663327c732328c1c8b50b84720f3449765cf81bc (patch)
treed065d2f8c7e1cfa2ee7eaa15ecb0150657076794 /bin
parent5c8b52fe3888a656bedeb19611adcffc9e472424 (diff)
parent7de48da554c5d079e3d692ae949ab68edd2ec7af (diff)
Merge pull request #909 from Shane-XB-Qian/pr_mailsync_display_fb
fix: displays fallback of default looks should be ':0'
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mailsync2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mailsync b/bin/mailsync
index 537e0f1..f4d9488 100755
--- a/bin/mailsync
+++ b/bin/mailsync
@@ -43,7 +43,7 @@ case "$(uname)" in
displays="$(echo "$pgrepoutput" | grep -wo "[0-9]*:[0-9]\+" | sort -u)"
[ -z "$displays" ] && [ -d /tmp/.X11-unix ] && displays=$(cd /tmp/.X11-unix && for x in X*; do echo ":${x#X}"; done)
- notify() { [ -n "$pgrepoutput" ] && for x in ${displays:-0:}; do
+ notify() { [ -n "$pgrepoutput" ] && for x in ${displays:-:0}; do
export DISPLAY="$x"
notify-send --app-name="mutt-wizard" "$1" "$2"
done ;}