summaryrefslogtreecommitdiff
path: root/src/password-store.sh
diff options
context:
space:
mode:
authorAllan Odgaard <github@simplit.com>2018-06-14 15:36:09 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-06-14 16:58:28 +0200
commitf97cf971d813bda250edaa3757c24ef1dc986309 (patch)
tree618f4db90dd0d7d9f1ab7d9b3aec11e860ce6ed0 /src/password-store.sh
parent4a6fa5cbdf093d7873524fe566f58bca3761592e (diff)
downloadpass-f97cf971d813bda250edaa3757c24ef1dc986309.tar.gz
pass-f97cf971d813bda250edaa3757c24ef1dc986309.tar.bz2
pass-f97cf971d813bda250edaa3757c24ef1dc986309.zip
Close stdout for background task that restores clipboard
While we do not expect any output on stdout from the background task, keeping the file handle open means that anyone calling `pass` and waiting for stdout to be closed, will have to wait (by default) for 45 seconds.
Diffstat (limited to '')
-rwxr-xr-xsrc/password-store.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/password-store.sh b/src/password-store.sh
index 3f25185..ccc22ea 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -173,7 +173,7 @@ clip() {
qdbus org.kde.klipper /klipper org.kde.klipper.klipper.clearClipboardHistory &>/dev/null
echo "$before" | base64 -d | xclip -selection "$X_SELECTION"
- ) 2>/dev/null & disown
+ ) >/dev/null 2>&1 & disown
echo "Copied $2 to clipboard. Will clear in $CLIP_TIME seconds."
}