Wayland, Wine can't read clipboard.

Questions about Wine on Linux
Locked
Neiropain
Newbie
Newbie
Posts: 2
Joined: Mon Sep 11, 2023 4:34 am

Wayland, Wine can't read clipboard.

Post by Neiropain »

If I try to copy/cut from outside wine/proton into wine/proton I can't paste it. But I can copy things from inside wine/proton and paste them outside.

If I try to paste my debug message is just:
0184:trace:clipboard:NtUserGetClipboardOwner returning 0x10030
0184:trace:clipboard:NtUserIsClipboardFormatAvailable CF_TEXT -> 0

I have tried solving it with clipboard managers but none of them work.

I am using Wayfire, but my friend installed it and it works fine for him, I am very confused.
madewokherd
Level 4
Level 4
Posts: 149
Joined: Mon Jun 02, 2008 5:03 pm

Re: Wayland, Wine can't read clipboard.

Post by madewokherd »

The interesting part happens in the explorer process when something is copied (you should see a trace from request_selection_contents), and in response to WM_RENDERFORMAT when the first attempt is made to paste.
Neiropain
Newbie
Newbie
Posts: 2
Joined: Mon Sep 11, 2023 4:34 am

Re: Wayland, Wine can't read clipboard.

Post by Neiropain »

My friend solved it, using xclip and wl-clipboard, launched with:

Code: Select all

wl-paste -t text -w xclip -selection clipboard
Locked