When using the yank-media command to paste images, the results are inconsistent. This issue persists even when running Emacs with emacs -Q.
In some instances, the command successfully pastes the image.
At other times, it fails with the message: "yank-media: No handler in the current buffer for anything on the clipboard."
Alternatively, it may display: "Timed out waiting for property-notify event."
Occasionally, attempting the command twice in quick succession results in success on the second attempt, though this is rare.
Copying images directly from a web browser using the "Copy Image" option generally works without issue.
However, copying images using the command grim -g "$(slurp)" - | wl-copy or from Telegram often results in the aforementioned errors.
Emacs : GNU Emacs 30.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.43, cairo version 1.18.0)Package: Org mode version 9.8-pre (release_9.7.16-169-ge87ecf)