arboard
arboard copied to clipboard
Add `SetExtLinux#wait_until`
Hello :wave:!
I added a wait_until
method on SetExtLinux
for X11 to wait until a deadline was exceeded so that:
- You wouldn't need a daemon process to call
wait
on. - Easier for CLI programs who don't want to infinitely loop / wait for new contents to be replaced & want to finish quickly.
This does report the following log when used:
2024-02-22T18:28:30.515424Z WARN arboard::platform::linux::x11: Could not hand the clipboard contents over to the clipboard manager. The request timed out.
since result.timed_out
is used and I'm not too sure what to do in this case:
https://github.com/1Password/arboard/blob/77e0e078eb460ac2fa0eda96124163c11ef6b2d1/src/platform/linux/x11.rs#L711-L715