diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-03-23 05:16:55 -0300 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-03-23 05:16:55 -0300 |
commit | 64d0f105d588f32de7ffc30068b6d000504dc8b9 (patch) | |
tree | 543404c64bd96c11630a3a812ec0406c3286be07 /src | |
parent | a41ce86e2315202311765cba144be71b36f90e82 (diff) | |
download | pass-64d0f105d588f32de7ffc30068b6d000504dc8b9.tar.gz pass-64d0f105d588f32de7ffc30068b6d000504dc8b9.tar.bz2 pass-64d0f105d588f32de7ffc30068b6d000504dc8b9.zip |
clip: wait longer for slow systems
Diffstat (limited to '')
-rwxr-xr-x | src/password-store.sh | 2 | ||||
-rw-r--r-- | src/platform/darwin.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/password-store.sh b/src/password-store.sh index b0c0422..8af232f 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -122,7 +122,7 @@ clip() { # we're going with this for now. sleep_argv0="password store sleep on display $DISPLAY" - pkill -f "^$sleep_argv0" 2>/dev/null && sleep 0.1 + pkill -f "^$sleep_argv0" 2>/dev/null && sleep 0.5 before="$(xclip -o -selection "$X_SELECTION" | base64)" echo -n "$1" | xclip -selection "$X_SELECTION" ( diff --git a/src/platform/darwin.sh b/src/platform/darwin.sh index 6b8af4b..8e3fb53 100644 --- a/src/platform/darwin.sh +++ b/src/platform/darwin.sh @@ -3,7 +3,7 @@ clip() { sleep_argv0="password store sleep for user $(id -u)" - pkill -f "^$sleep_argv0" 2>/dev/null && sleep 0.1 + pkill -f "^$sleep_argv0" 2>/dev/null && sleep 0.5 before="$(pbpaste | openssl base64)" echo -n "$1" | pbcopy ( |