On Sun, Jul 7, 2013 at 4:32 AM, Georg Baum <georg.b...@post.rwth-aachen.de> wrote:
> Sorry, it is finally summer here, so I had to spend more time outside:-) Same here, except that 37 C means that some days I spend less time outside :) > Today I had a look, but could not reproduce your problem. I also changed the > preference from text to graphics for standard paste without arguments, and > pasting of a png file worked fine. Without this, I either get the image (if > e.g. pasted from gimp), or the URL of the image as text (if pasted from > browsers), but as I explained preferring the text over graphics is wanted > and the same as in 2.0. > Which application do you use to store the png on the clipboard? Could you > debug what happens during pasting? The most interesting thing to know would > be the text flavour which is recognized by LyX (e.g. plain text or HTML > etc.), and whether it recognizes text only, or text + graphics. Currently I > believe that the copying application puts something on the clipboard which > is recognized as text by LyX, but in fact is no text. Thanks for taking a look and trying to reproduce. What OS are you using? What browser? I'm using Ubuntu 13.04 and Chromium and Firefox. I use the (excellent and cross-platform) clipboard manager CopyQ, but I can reproduce with or without CopyQ running: In Chromium or Firefox, when I go to http://www.lyx.org and right click on intro.png and go to "copy image" and then go to LyX and paste, nothing is pasted (although "paste" shows up in LyX's message box). If I then open up Gimp and paste, the image pastes as expected. CopyQ shows the following after copying the image: text/html: <meta http-equiv="content-type" content="text/html; charset=utf-8"><img src="http://www.lyx.org/images/intro.png" alt="Download"/> image/bmp: (shows the picture) text/uri-list: http://www.lyx.org/images/intro.png application/x-copyq-owner-window-title: LyX | LyX – The Document Processor - Chromium If I copy from Gimp to LyX, everything works fine and CopyQ shows the clipboard as having: image/bmp image/png image/jpeg application/x-copyq-owner-window-title: *[Untitled]-5.0 (RGB color, 2 layers) 640x400 – GIMP So perhaps it is the text/html that is causing the behavior I'm seeing. Maybe LyX recognizes it and pastes it in but when it converts it it converts it to nothing? That's why I don't see anything pasted? Scott