]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Fix(xclip): avoid 'Error: target STRING not available' (2)
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 15 Jul 2022 15:46:50 +0000 (12:46 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 15 Jul 2022 15:46:50 +0000 (12:46 -0300)
lib/keyringer/actions/xclip

index f63fdb5b72ad87191d20781c45a9b8aaaca2a43a..0e36dae2cfea34942718f22e9b14997be6898f25 100755 (executable)
@@ -20,7 +20,7 @@ clip() {
 
   # Avoid "Error: target STRING not available"
   # https://github.com/astrand/xclip/issues/38
-  echo "$RANDOM" | $xclip
+  echo "$RANDOM" | $xclip &> /dev/null
 
   # Copy text into clipboard
   echo -n "$1" | $xclip