summaryrefslogtreecommitdiffstats
path: root/remote-notify-client.sh
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-06-29 11:57:48 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-06-29 11:57:48 +0200
commitea7435d35d6813ba078b5e2bb46b08db54c591da (patch)
treedf85a13c089691893e4f28511863dbcfeac511b3 /remote-notify-client.sh
parent99c57ebd65cdd60d5dbcac5b91af8c2d65c9ad17 (diff)
downloadbin-ea7435d35d6813ba078b5e2bb46b08db54c591da.tar.gz
bin-ea7435d35d6813ba078b5e2bb46b08db54c591da.tar.xz
remote-notify-client.sh: Run ssh in batch mode
Password queries could cause hanging X sessions if this script is run in .xinitrc. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'remote-notify-client.sh')
-rwxr-xr-xremote-notify-client.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/remote-notify-client.sh b/remote-notify-client.sh
index c53fa95..40caac5 100755
--- a/remote-notify-client.sh
+++ b/remote-notify-client.sh
@@ -4,7 +4,7 @@
exec 0<&-
-sup ssh caju 'socat unix-connect:notify.sock stdout' |
+sup ssh -o BatchMode=yes caju 'socat unix-connect:notify.sock stdout' |
while read heading message; do
if [[ -n $heading ]]; then
notify-send --hint=int:transient:1 -t 5000 -- "${heading}" "${message}";