Share X clipboard in Wine

Questions about Wine on Linux
Locked
stephen7337
Level 1
Level 1
Posts: 6
Joined: Mon Jun 10, 2019 3:30 am

Share X clipboard in Wine

Post by stephen7337 »

Hi there,

I suspect this question may have been asked before. I am using Ubuntu 18.04 LTS, wine-3.0 (Ubuntu 3.0-1ubuntu1).

I am not able to copy from something like Firefox in X and paste in to any Wine application be it notepad or anything else. Neither can I copy from the Wine application and paste back into X.

Copy and paste does work between Wine Apps in either direction.

I have researched this but not found anything that is helpful. This is either not meant to be or I'm missing something really simple and obvious.

Please help, thank you.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Share X clipboard in Wine

Post by Bob Wya »

@stephen7337

A quick test on my system (Gentoo + Plasma 5) shows basic clipboard functionality works OK.
I even installed wine-vanilla:3.0 (which is an unsupported version of Wine now, btw) and couldn't reproduce your issue (obviously I can't replicate it - because you haven't stated what Windows applications you've tested).
Potentially it could be a Gnome Shell issue.
  • Please can you detail what Windows applications, you are testing, under Wine.
  • Are you setting any non-defaults for your WINEPREFIX, e.g. using a Wine Virtual Desktop?
Thanks
Bob
stephen7337
Level 1
Level 1
Posts: 6
Joined: Mon Jun 10, 2019 3:30 am

Re: Share X clipboard in Wine

Post by stephen7337 »

The specific application which is in question is Amazon Workspaces Client which is a variant of the PCOIP family. I haven't used any special prefix to launch the AWS Workspaces Client.

I have to admit, that today, copying from X into both wordpad and notepad functions as expected. On Friday, though I was not having such success, the problem seemed much more general. I apologize to for my broad sweeping accusation.

Amazon Workspaces isn't a general purpose application though AWS does offer a free tier for those wanting to experiment, you need to sign up to AWS first to use it. Amazon do not offer a native option for Linux.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Share X clipboard in Wine

Post by Bob Wya »

@stephen7337

OK I took a look at the Amazon Workspaces setup...
Yeah that is a bit too deep of a rabbit hole to continue with...
Well just now anyway! :shock:

I'd suggest filing a WineHQ bug for copy-paste on the AWS client.
The application's functionality will need to be tested with Wine 4.10 (latest release).
You'll need to supply a Wine terminal log, probably the following debug channel would be useful:

Code: Select all

cd "${WINEPREFIX:-${HOME}/.wine}/Program Files (x86)/Amazon Web Services, Inc/Amazon WorkSpaces"
export WINEDEBUG=+clipboard
wine workspaces.exe &> ~/wine-4.10_clipboard_log.txt
You should attach the log bug report.
I am sure you know the drills (if you're using AWS)! :lol:

I suspect it's probably due to one of the many annoying bugs/ quirks that Qt5 has... :roll:

Bob
stephen7337
Level 1
Level 1
Posts: 6
Joined: Mon Jun 10, 2019 3:30 am

Re: Share X clipboard in Wine

Post by stephen7337 »

Hi Bob,

I have opened https://bugs.winehq.org/show_bug.cgi?id=47344

Not the best bug by any means.

Thank you for your help.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Share X clipboard in Wine

Post by Bob Wya »

stephen7337 wrote:Hi Bob,

I have opened https://bugs.winehq.org/show_bug.cgi?id=47344

Not the best bug by any means.

Thank you for your help.
The bug report is fine... However the log file is useless (I blame myself)... :? :cry:

So please retest, with:

Code: Select all

cd "${WINEPREFIX:-${HOME}/.wine}/drive_c/Program Files (x86)/Amazon Web Services, Inc/Amazon WorkSpaces"
export WINEDEBUG=+timestamp,+tid,+all
wine workspaces.exe &> ~/wine-4.10_all_log.txt
That will open the flood gates of Hades unfortunately... The resulting log file will be huge!
So you'll need to compress the log file, with xz, to keep it below 5000 Kbytes:

Code: Select all

xz -9 -e ~/wine-4.10_all_log.txt
- before attaching it to the bug report.

You'd also need to do the copy-paste operations very quickly (or perhaps generate multiple logs - one per copy-paste operation??)!! :lol:
Otherwise the log will be unmanageable...

Please also use a well defined/short string to copy-paste between the applications.
(It might be useful to do a copy-paste between the AWS client and notepad, running in the same WINEPREFIX.)
Then you can state what pre-determined copy-paste string you have used, in the Bug report...
So that peeps won't be searching for a "needle in a haystack", in your logs! 8)

Thanks
Bob
stephen7337
Level 1
Level 1
Posts: 6
Joined: Mon Jun 10, 2019 3:30 am

Re: Share X clipboard in Wine

Post by stephen7337 »

Hi Bob,

I will get this done.

Thank you.
stephen7337
Level 1
Level 1
Posts: 6
Joined: Mon Jun 10, 2019 3:30 am

Re: Share X clipboard in Wine

Post by stephen7337 »

Hi Bob,

I have tested extensively and with these logging options, "wine workspaces.exe" does not start. It does however produce a log that is too large to post here.

I will make an attempt to prepare a smaller upload.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Share X clipboard in Wine

Post by Bob Wya »

stephen7337 wrote:...
It does however produce a log that is too large to post here.

I will make an attempt to prepare a smaller upload.
You could post the (compressed) log externally e.g. Google drive, Mega, etc.
Then provide a link here.

Ideally logs should be attached to Wine bug reports (for historical tracking reasons); but obviously those rules don't apply to these forums.

Bob
vort2020
Newbie
Newbie
Posts: 3
Joined: Sun Jun 16, 2019 10:17 am

Re: Share X clipboard in Wine

Post by vort2020 »

Hi

I have the same problem (copy/paste of plain text doesn't work). I have installed Wine (development version) on Ubuntu 18.04.2 LTS.
And execute

Code: Select all

wine msiexec /i Amazon_WorkSpaces.msi
With wine64 or wine v.4.0 the icon of aws client desktop shortcut doesn't look well.

Could you please help me with this issue?
Attachments
Screenshot from 2019-06-16 18-29-03.png
Screenshot from 2019-06-16 18-11-55.png
Screenshot from 2019-06-16 18-09-26.png
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Share X clipboard in Wine

Post by Bob Wya »

vort2020 wrote:...
With wine64 or wine v.4.0 the icon of aws client desktop shortcut doesn't look well.

Could you please help me with this issue?
Please don't post screenshots of terminals. Just post the terminal text, using the forum Code tags:

Code: Select all

...
Your terminal screenshot contradicts the Wine version, you stated you were testing with - 3.6 vs 4.0??
Certainly Wine 3.6 is not supported any more. The current Wine development release is 4.10.

Op has already filed a bug report. Short of making a donation to Codeweavers... ! :lol:

Bob
vort2020
Newbie
Newbie
Posts: 3
Joined: Sun Jun 16, 2019 10:17 am

Re: Share X clipboard in Wine

Post by vort2020 »

Sorry for inaccuracy. I was testing on wine 3.6.
I will try wine 4.10 and will write about results.
vort2020
Newbie
Newbie
Posts: 3
Joined: Sun Jun 16, 2019 10:17 am

Re: Share X clipboard in Wine

Post by vort2020 »

I have tested with:

Code: Select all

$ wine --version
wine-4.10
The copy/paste still doesn't work, also an icon has disappeared.
Attachments
Screenshot from 2019-06-18 10-38-11.png
Screenshot from 2019-06-18 10-38-11.png (16.5 KiB) Viewed 11745 times
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Share X clipboard in Wine

Post by Bob Wya »

vort2020 wrote:... also an icon has disappeared.
@vort2020

You are going off-topic here, on someone else's thread.
This is commonly termed as: "thread hijacking"

The primary focus of this thread should remain about copy-paste issue on the AWS Client.

Bob
cristianpark
Newbie
Newbie
Posts: 1
Joined: Mon Nov 25, 2019 4:25 pm

Re: Share X clipboard in Wine

Post by cristianpark »

Have you ever found a fix for this issue? I'm facing same error while trying to copy between Workspace and host. I'm running Amazon Workspaces Client on PlayOnLinux with Wine 4.20.1
User avatar
Maniaxx
Level 2
Level 2
Posts: 38
Joined: Sun Aug 20, 2017 5:42 pm

Re: Share X clipboard in Wine

Post by Maniaxx »

Never mind... that's rather a 'copyq' issue (clipboard manager).

Previous post (obsolete):
Might be related:
In Wine 4.21 apps (notepad++ and editor tested) it works exactly one time to export the clipboard. Any subsequent new clipboard entry won't get exported into the linux environment (CLIPBOARD).
stefanr
Newbie
Newbie
Posts: 1
Joined: Sun Mar 08, 2020 2:15 pm

Re: Share X clipboard in Wine

Post by stefanr »

I had trouble using copy/paste to and from native Linux apps in Amazon Workspaces running in Wine. Using the following combinations in this app seems to work though:

Ctrl+Insert : Copy to the clipboard
Shift+Insert : Paste from the clipboard
Shift+Delete : Cut to the clipboard
vickk
Newbie
Newbie
Posts: 1
Joined: Tue Jan 05, 2021 6:08 am

Re: Share X clipboard in Wine

Post by vickk »

stefanr wrote: Sun Mar 08, 2020 2:22 pm I had trouble using copy/paste to and from native Linux apps in Amazon Workspaces running in Wine. Using the following combinations in this app seems to work though:

Ctrl+Insert : Copy to the clipboard
Shift+Insert : Paste from the clipboard
Shift+Delete : Cut to the clipboard
Could you please share some details?
Linux distribution, wine version, aws client version, etc?
Keys combinations above didn't help me unfortunately.
Locked