Rely on xclip "-sensitive" instead of "-wait" and "-loops".
"-sensitive" is implemented as "-wait 55".master v0.9.5
parent
00ec0f2719
commit
09ece760be
|
@ -73,7 +73,7 @@ func main() {
|
||||||
var b2 bytes.Buffer
|
var b2 bytes.Buffer
|
||||||
if err := Execute(&b2,
|
if err := Execute(&b2,
|
||||||
exec.Command("qubes-gopass-client", "show", "-o", selection),
|
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 {
|
); err != nil {
|
||||||
log.Fatalln(err)
|
log.Fatalln(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue