summaryrefslogtreecommitdiff
path: root/bin/emacsclient
diff options
context:
space:
mode:
Diffstat (limited to 'bin/emacsclient')
-rwxr-xr-xbin/emacsclient3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/emacsclient b/bin/emacsclient
index 2e555710..c0281cf6 100755
--- a/bin/emacsclient
+++ b/bin/emacsclient
@@ -62,7 +62,8 @@ get_listener () {
maybe_notify () {
echo >&2 "$1"
- $was_set && notify-send --urgency=low --expire-time=10000 "$1"
+ $was_set && ! [ -t 2 ] \
+ && notify-send --urgency=low --expire-time=10000 "$1"
}
spw_flock () {