#2 wl-copy only works sometimes 2 years ago

Ticket created by ~avalonwilliams on ~whynothugo/clipmon

When piping data to wl-copy, (eg. echo foobar | wl-copy), occasionally, the data won't get copied to the clipboard, instead the previous clipboard contents are preserved. In the logs, it prints out We already own Clipboard, escaping with no other output without the WAYLAND_DEBUG output on, and with the debug output on, it seems as though (possibly), because wl-copy exits when it loses control over the clipboard, there is a race condition between wl-copy and clipmon.