aweinstock314 / rust-clipboard

System Clipboard interfacing library in Rust
Apache License 2.0
361 stars 72 forks source link

Error: load selection timeout #54

Open krzystof opened 6 years ago

krzystof commented 6 years ago

Hey, I have a "load selection timeout" error when doing ctx.get_contents(). I am sorry I don't get much output, but happy to provide more (I am new to Rust). I am using ubuntu 17.10, rust 1.23. I could not find anything related to that on the issues. Let me know what I can do to give you more information. Cheers

brownjohnf commented 5 years ago

I'm not sure exactly how you're using rust-clipboard, but in X11 clipboard contents are not actually stored in the clipboard. Applications make the content available to the clipboard. If the clipboard is empty, or the most recent application (process) to have provided clipboard contents has exited, the clipboard will be empty, and you'll see this timeout error (at least I do, when using rust-clipboard).

You can verify this by copying something into the clipboard prior to running your code.

brownjohnf commented 5 years ago

See #61. That's how I wound up here :-)