]> gitweb.fluxo.info Git - utils-x11.git/commitdiff
Check for display at qrpaste
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 30 Oct 2017 13:33:50 +0000 (11:33 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 30 Oct 2017 13:33:50 +0000 (11:33 -0200)
qrpaste

diff --git a/qrpaste b/qrpaste
index 6728adf449e5d58f017079be5668b001f480a9f5..f85394161bfe87e830515488a8cc6b64c24de34b 100755 (executable)
--- a/qrpaste
+++ b/qrpaste
@@ -15,6 +15,9 @@ if ! which qrencode &> /dev/null; then
 elif ! which xclip &> /dev/null; then
   echo "$BASENAME: xclip not found"
   exit 1
+elif ! which display &> /dev/null; then
+  echo "$BASENAME: display not found"
+  exit 1
 fi
 
 # Run