]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Fix(xclip): avoid 'Error: target STRING not available' (3)
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 21 Aug 2022 22:21:40 +0000 (19:21 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 21 Aug 2022 22:21:40 +0000 (19:21 -0300)
lib/keyringer/actions/xclip

index 0e36dae2cfea34942718f22e9b14997be6898f25..d1d85b52bd7a34e2afd09221e6b43b36a2ebb370 100755 (executable)
@@ -42,7 +42,7 @@ clip() {
     # so we axe it here:
     qdbus org.kde.klipper /klipper org.kde.klipper.klipper.clearClipboardHistory &>/dev/null
 
-    echo "$before" | base64 -d | $xclip
+    echo "$before" | base64 -d | $xclip 2> /dev/null
   ) & disown
   echo "Copied $2 to clipboard. Will clear in 45 seconds."
 }