Rely on xclip "-sensitive" instead of "-wait" and "-loops".

"-sensitive" is implemented as "-wait 55".
master v0.9.5
Ezekiel Grave 2024-11-12 09:25:17 -08:00
parent 00ec0f2719
commit 09ece760be
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ func main() {
var b2 bytes.Buffer
if err := Execute(&b2,
exec.Command("qubes-gopass-client", "show", "-o", selection),
exec.Command("timeout", "--preserve-status", "66", "xclip", "-quiet", "-in", "-loops", "1", "-wait", "66", "-selection", "clipboard"),
exec.Command("timeout", "--preserve-status", "66", "xclip", "-quiet", "-in", "-sensitive", "-selection", "clipboard"),
); err != nil {
log.Fatalln(err)
}