Comment 6 for bug 682310

Revision history for this message
Giovanni Mascellani (giomasce) wrote :

Here you are a few new discoveries.

With the xclip program you can obtain the content of the clipboard. You use it this way:

 * To know which content types are available in the clipboard: xclip -selection c -o -t TARGETS

 * To actually get the content for a given content type: replace "TARGETS" with the content type

If I copy the GeoGebra view in the clipboard I have:

$ xclip -selection c -o -t TARGETS
image/jpeg
image/png
image/x-png
image/x-raw
image/x-portable-pixmap
image/x-gif
image/gif
PNG
JFIF
$ xclip -selection c -o -t image/png | file -
/dev/stdin: PNG image data, 1168 x 898, 8-bit/color RGBA, non-interlaced

Then, pasting in LibreOffice doesn't work, but in GIMP does. Then I paste in GIMP and copy again from GIMP, getting:

$ xclip -selection c -o -t TARGETS
TIMESTAMP
TARGETS
MULTIPLE
SAVE_TARGETS
image/png
image/x-icon
image/x-ico
image/x-win-bitmap
image/bmp
image/x-bmp
image/x-MS-bmp
image/tiff
image/jpeg

Than pasting in LibreOffice works. I don't know whether the TARGETS difference is significat or the problem is another. Anyway, I'm quite sure it isn't GeoGebra's fault. ASAP I'll write a program to prove this.

Gio.