Clipboard Syncing (does wine sync images or files)?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
DanDude
Level 1
Level 1
Posts: 6
Joined: Tue Aug 24, 2010 5:30 pm

Clipboard Syncing (does wine sync images or files)?

Post by DanDude »

I am running on a Mac and the clipboard seems to work in my program on text just fine. The problem is when I copy an image to the clipboard it doesn't seem to copy.

If I copy an image to the clipboard then I try to paste it I get what was on the clipboard previously (text).

Does wine not support syncing images or files to the clipboard (besides text)?

Any workaround to this?
DaVince
Level 8
Level 8
Posts: 1099
Joined: Wed Oct 29, 2008 4:53 pm

Post by DaVince »

As far as I know, Wine can only copy and paste text data right now.

Copying and pasting image data in just Wine apps may work.
Thunderbird
Level 5
Level 5
Posts: 336
Joined: Mon Nov 24, 2008 8:10 am

Post by Thunderbird »

Clipboard using Wine on Mac + X11 is a big problem. On Linux + X11 the clipboard typically works fine. Copying images also works fine (provided the Linux app supports the image formats the Windows program puts on the clipboard). Some formats like Windows metafiles aren't so common in Linux apps.

The main issue on Macs is that there are '3' clipboards namely the Wine one, the X11 one (the Wine and X11 are 'synced') and then the Mac one. At the time I looked at it the main issue was with the Mac - X11 clipboard syncing (the Mac clipboard itself seems to be quite basic).

First try to get text copying work which is already painful enough (I think I had to disable some settings in X11 to make it sort of work a bit).
James McKenzie

Clipboard Syncing (does wine sync images or files)?

Post by James McKenzie »

DanDude wrote:
I am running on a Mac and the clipboard seems to work in my program on text just fine. The problem is when I copy an image to the clipboard it doesn't seem to copy.
Known issue with Macs. Another reason to get a Aqua native version of
Wine working (and that is a long way off.) Otherwise, Mac Users might
have to use a different program to get the copy to work and then over to
Wine.

I'll have to look at this or maybe doh123 can try to figure out what
needs to be done.

James McKenzie
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Re: Clipboard Syncing (does wine sync images or files)?

Post by doh123 »

James McKenzie wrote: I'll have to look at this or maybe doh123 can try to figure out what
needs to be done.

James McKenzie
Is this a Wine issue? I've never tried copy and pasting anything but text in Wine... not sure I have any apps to run in Wine to easily test pictures. Xquartz itself should sync the pasteboard and clipboard if the options are set right in preferences and work fine. Gimp running in Xquartz for me is copy and pasting pictures fine.. in and out of X11.

Make sure you have Xquartz 2.5.3 (latest release) and that you have its preferences under Pasteboard to enable syncing and all the options checked. Theoretically it should work with Wine just fine...
James McKenzie

Clipboard Syncing (does wine sync images or files)?

Post by James McKenzie »

doh123 wrote:
James McKenzie wrote:
I'll have to look at this or maybe doh123 can try to figure out what
needs to be done.

James McKenzie
Is this a Wine issue? I've never tried copy and pasting anything but text in Wine... not sure I have any apps to run in Wine to easily test pictures. Xquartz itself should sync the pasteboard and clipboard if the options are set right in preferences and work fine. Gimp running in Xquartz for me is copy and pasting pictures fine.. in and out of X11.
Try copying a file from a MacOSX program that contains an image. Then
switch to GIMP and try and paste it. If this works, then we can use
GIMP to be the intermediary program to get it to Wine. OpenOffice.org
had this problem until it was switched from an X11 interface to AQUA.
That took three years on the second attempt. NeoOffice.og was the first
and it took seven.
Make sure you have Xquartz 2.5.3 (latest release) and that you have its preferences under Pasteboard to enable syncing and all the options checked. Theoretically it should work with Wine just fine...
It should. But we have to assume that folks are using MacOSX versions
of X11, not MacPorts/XQuartz.

James McKenzie
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Re: Clipboard Syncing (does wine sync images or files)?

Post by doh123 »

James McKenzie wrote:Try copying a file from a MacOSX program that contains an image. Then
switch to GIMP and try and paste it. If this works, then we can use
GIMP to be the intermediary program to get it to Wine. OpenOffice.org
had this problem until it was switched from an X11 interface to AQUA.
That took three years on the second attempt. NeoOffice.og was the first
and it took seven.

It should. But we have to assume that folks are using MacOSX versions
of X11, not MacPorts/XQuartz.
Thats what I did... I can copy and paste just fine between GIMP in X11 and Pages and TextEdit.... back and forth

No one should be using Wine with Apple's X11. If they are, they should be told to get Xquartz just like people running old versions of Wine are told to get the latest version. Since 10.6, a normal Xquartz install wont replace Apple's version anymore, you can have both.... so Apple updates and such don't break it like in 10.5.
James McKenzie

Clipboard Syncing (does wine sync images or files)?

Post by James McKenzie »

doh123 wrote:
James McKenzie wrote:
Try copying a file from a MacOSX program that contains an image. Then
switch to GIMP and try and paste it. If this works, then we can use
GIMP to be the intermediary program to get it to Wine. OpenOffice.org
had this problem until it was switched from an X11 interface to AQUA.
That took three years on the second attempt. NeoOffice.og was the first
and it took seven.

It should. But we have to assume that folks are using MacOSX versions
of X11, not MacPorts/XQuartz.
Thats what I did... I can copy and paste just fine between GIMP in X11 and Pages and TextEdit.... back and forth

No one should be using Wine with Apple's X11. If they are, they should be told to get Xquartz just like people running old versions of Wine are told to get the latest version. Since 10.6, a normal Xquartz install wont replace Apple's version anymore, you can have both.... so Apple updates and such don't break it like in 10.5.

I agree with the X11 comment, but WE have to ASSUME they are using the
broken X11 and that they don't have enough experience or fortitude to
want to upgrade to XQuartz. Remember one of the selling points for Macs
is "It works, out of the box". Until the code is moved to Apple's X11
that's what we have to deal with.

As far as your test, did you move images, text or both?

James McKenzie
madewokherd
Level 4
Level 4
Posts: 149
Joined: Mon Jun 02, 2008 5:03 pm

Clipboard Syncing (does wine sync images or files)?

Post by madewokherd »

On Sun, Aug 29, 2010 at 3:28 AM, doh123 <[email protected]> wrote:
Is this a Wine issue?  I've never tried copy and pasting anything but text in Wine... not sure I have any apps to run in Wine to easily test pictures.  Xquartz itself should sync the pasteboard and clipboard if the options are set right in preferences and work fine.  Gimp running in Xquartz for me is copy and pasting pictures fine.. in and out of X11.

Make sure you have Xquartz 2.5.3 (latest release) and that you have its preferences under Pasteboard to enable syncing and all the options checked.  Theoretically it should work with Wine just fine...
Wine can only export and import images in the PIXMAP or image/bmp
format. This is rather unusual, and it could explain discrepancies
between Wine and other X11 applications.
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Re: Clipboard Syncing (does wine sync images or files)?

Post by doh123 »

James McKenzie wrote:I agree with the X11 comment, but WE have to ASSUME they are using the
broken X11 and that they don't have enough experience or fortitude to
want to upgrade to XQuartz. Remember one of the selling points for Macs
is "It works, out of the box". Until the code is moved to Apple's X11
that's what we have to deal with.

As far as your test, did you move images, text or both?

James McKenzie
thats one of the many reasons I build Xquartz into Wineskin and don't use any X11 off the machine... but I think anyone willing to Install and use Wine can use Xquartz... its just a normal point and click Apple pkg installer.

I can copy and paste pictures and text both, yes.
James McKenzie

Clipboard Syncing (does wine sync images or files)?

Post by James McKenzie »

doh123 wrote:
James McKenzie wrote:
I agree with the X11 comment, but WE have to ASSUME they are using the
broken X11 and that they don't have enough experience or fortitude to
want to upgrade to XQuartz. Remember one of the selling points for Macs
is "It works, out of the box". Until the code is moved to Apple's X11
that's what we have to deal with.

As far as your test, did you move images, text or both?

James McKenzie
thats one of the many reasons I build Xquartz into Wineskin and don't use any X11 off the machine... but I think anyone willing to Install and use Wine can use Xquartz... its just a normal point and click Apple pkg installer.

I can copy and paste pictures and text both, yes.

Thank you. Please contact me off the list/forum for other comments.

James McKenzie
DanDude
Level 1
Level 1
Posts: 6
Joined: Tue Aug 24, 2010 5:30 pm

Post by DanDude »

This is a problem with an application I develop, so I can't expect users to upgrade their X11 or do complicated stuff. I packaged Wine and everything into a nice little bundle so it's easy.

If I have them install and config a ton of stuff nobody will ever use it. I'm running the latest updates on 10.6 and I can't get images to sync so i'm pretty sure that the funcationaly isn't in the OS X X11 yet. Maybe when it gets updated I'll get the functionality but until then I'll just have to disable it on the Mac bundle.
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Post by doh123 »

DanDude wrote:This is a problem with an application I develop, so I can't expect users to upgrade their X11 or do complicated stuff. I packaged Wine and everything into a nice little bundle so it's easy.

If I have them install and config a ton of stuff nobody will ever use it. I'm running the latest updates on 10.6 and I can't get images to sync so i'm pretty sure that the funcationaly isn't in the OS X X11 yet. Maybe when it gets updated I'll get the functionality but until then I'll just have to disable it on the Mac bundle.
I've taken some of the work out of it if you want a full package...
Wineskin i started just for that reason... using Wine to take a Windows app and make a Mac app out of it... it bundles up everything needed including Xquartz... it doesn't uses the systems install of it. I can help you some with it if you need.. I know there are a few mainly user friendly and confusing issues.. I'm currently working on redesigning a lot for Wineskin 2.0 I hope to start open beta testing in the next month or two. I release all my code in LGPL so you shouldn't have any legal issues using it.
webadmin
Newbie
Newbie
Posts: 3
Joined: Mon Sep 06, 2010 3:09 am

Post by webadmin »

I think wine may not support images in mac once i too tried but did not succeed I think only supports for other versions like windows etc. So it is better if you dont try with other version i think it is just wastage of time.
Locked