Atreyagaurav/clipcap

Fails with Error when the clipboard is empty (right after booting)

Closed this issue · 1 comments

The following error was received when the clipcap was run with clipcap -p immediately after computer bootup.

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ContentNotAvailable - "The clipboard contents were not available in the requested format or the clipboard is empty."', src/main.rs:36:58

Might need to make sure this is caught and skipped when this error is encountered, as the description looks like it'll happen also when an image is copied.

Fixed by e61efbe