Hi Jason, Thanks for the reply. Had to trace it back as it didn't register as part of the same thread: https://lists.zx2c4.com/pipermail/password-store/2017-February/002806.html
The distro is NixOS: https://nixos.org/ The fix to the actual problem is attached. Jason A. Donenfeld wrote on 02/25/2017 01:52 PM: > What distro are you using? >
From 6576ded1cdfc9e37e7d49e9e973ee3d57d506603 Mon Sep 17 00:00:00 2001 From: Renato Alves <[email protected]> Date: Sat, 25 Feb 2017 14:26:02 +0100 Subject: [PATCH] BUG Fix delayed clipboard cleanup on NixOS --- src/password-store.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/password-store.sh b/src/password-store.sh index e8948a1..dfe9cf5 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -153,7 +153,11 @@ clip() { local before="$(xclip -o -selection "$X_SELECTION" 2>/dev/null | base64)" echo -n "$1" | xclip -selection "$X_SELECTION" || die "Error: Could not copy data to the clipboard" ( - ( exec -a "$sleep_argv0" sleep "$CLIP_TIME" ) + # Execute sleep as a child process of bash. + # On some systems (found on NixOS) bash may be a symlink to a + # single binary version of coreutils or busybox which depends + # on argv0 to be correctly set to "sleep" + ( exec -a "$sleep_argv0" bash <(echo sleep "$CLIP_TIME") ) local now="$(xclip -o -selection "$X_SELECTION" | base64)" [[ $now != $(echo -n "$1" | base64) ]] && before="$now" -- 2.10.2
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Password-Store mailing list [email protected] https://lists.zx2c4.com/mailman/listinfo/password-store
