wslg icon indicating copy to clipboard operation
wslg copied to clipboard

Can't copy links from Google Chrome address bar, but from everywhere else

Open thendricks0 opened this issue 1 year ago • 1 comments

Windows build number: Microsoft Windows NT 10.0.22631.0 Distribution version: Ubuntu 24.04 WSL Version: 2.4.4 Chrome Version: 131.0.6778.85

Description

Copying links from Chromes address bar is not possible. Other Chromium based browsers or at least Brave, do not have this issue.

Steps to reproduce

  1. Install Google Chrome stable.
  2. Try to copy links from address bar
  3. Link will be added to clipboard but only inside Chrome window
  4. Outside of the Chrome window the clipboard will either be emptied or out of date

Workaround

Either copy the link INSIDE Chrome to any text box on a page, or open the search box using Ctrl+F, paste the link there and then copy it again. Only then the link will be added to the clipboard globally.

The other workaround is to enable the "Copy link" button inside Chromes toolbar (Settings > Appearance > Customize your toolbar). The button properly copies the link of the current page.

WSL Logs

weston.log pulseaudio.log stderr.log

FYI: Your bug report template is broken, so would anybody care to just merge this PR? https://github.com/microsoft/wslg/pull/1298

thendricks0 avatar Dec 03 '24 08:12 thendricks0

same issue here. running google-chrome-stable --ozone-platform=wayland it is impossible to copy from address bar, but works when right click to a link and clicking in Copy link address. Copying works fine with other programs (like vscode) running under wayland.

heamaral avatar Jan 04 '25 18:01 heamaral

Same here, google chrome wayland cant copy from address bar and paste in windows.

tahoward avatar May 12 '25 18:05 tahoward