microsoft / wslg

Enabling the Windows Subsystem for Linux to include support for Wayland and X server related scenarios
MIT License
10.1k stars 304 forks source link

copy/paste doesn't work in latest pre-release #1044

Open jepet opened 1 year ago

jepet commented 1 year ago

Windows Version

Microsoft Windows [Version 10.0.22000.1696]

WSL Version

1.2.1

Are you using WSL 1 or WSL 2?

Kernel Version

5.15.90.1-microsoft-standard-WSL2

Distro Version

Ubuntu-20.04

Other Software

No response

Repro Steps

Copy something from the terminal or from a Windows application.

Open a Linux UI application (I tested this in firefox and IntelliJ Idea). Paste doesn't work.

(Pasting in the terminal works.)

Expected Behavior

I expect paste to work in UI applications.

I've downgraded WSL to the latest official release (1.1.3) and here paste works fine.

Actual Behavior

Paste doesn't work in UI applications.

Diagnostic Logs

No response

einarpersson commented 1 year ago

Hi, I just want to let you know that I also have 5.15.90.1-microsoft-standard-WSL2 and copy/paste works to/from my Obsidian which I have installed as a GUI app on WSL2.

WSL version: 1.2.0.0
Kernel version: 5.15.90.1
WSLg version: 1.0.51
elfmz commented 1 year ago

hi, this looks similar to a problem that i have with wxWidgets: https://github.com/wxWidgets/wxWidgets/issues/23544

unxed commented 6 months ago

Maybe possible reason? https://github.com/wxWidgets/wxWidgets/issues/24391#issuecomment-1989195956

unxed commented 6 months ago

Jet another related issue.

From https://github.com/wxWidgets/wxWidgets/issues/23544#issuecomment-1548095205:

Looking at the diff between the logs it seems that WSL provides text/plain;charset=utf-8 format instead of UTF8_STRING. It should be relatively simple to add support for this format too, but I have no idea why it doesn't use the de facto standard here.