This might be more a KDE issue, since I cant copy links from wayland firefox on KDE either.
Firefox Developer Edition works no problems for me running native Wayland. Chromium and Brave work as well on native Wayland. This issue is specific to Steam.
I have a lot of weird issues with anything chromiuim-based in wayland (on kde plasma, nvidia card, gentoo for me), which is annoying because I can't pin down the root cause and don't know who to report what to, but sometimes the clipboard doesn't work, sometimes it does, sometimes pages freeze, sometimes i can reload them, sometimes i can't. sometimes apps get sluggish and eventually stop responding and i have to restart them. wish i had any idea how to narrow it down and figure out the root cause so i could even report it to the correct place.
Wayland has worked perfectly fine for me for the last year, this bug report is not about other applications though.
It's also worth nothing that Steam is not a Wayland native application and works through XWayland, and the copy URL feature has been intermittently broken over the years even on X11. It has worked fine for the last while (including the stable release without the new UI) but there appears to have been a regression with the new UI, which is the focus of this bug report.
Copying the URL from the top bar in Steam, as noted in the issue description, works fine. So this issue is specifically related to one place where URLs are copied from the Steam client. It just so happens that I'm using Wayland.
If it helps, I don't ever recall copying from steam ever working on KDE wayland, either from the topbar or in app.
Copying from the top bar has worked across my machines at least since December and currently does still work on the New UI. It is only the Copy URL option in the context menu which does not. It's probably better to open separate issues if copying from within Steam does not work outside of the New UI.
Copying from the URL bar doesn't work correctly anyway – it's the whole URL or nothing, and, as with the rest of Steam, always to both the primary selection and to the clipboard. The latter should only be happening with Ctrl-X or Ctrl-C.
This is, at least in part, a regression from the stable client: for example, I could select just the game ID number from a store or discussions URL and copy/paste only that.
The new UI's intended functionality currently, as far as I understand it, is click-to-copy. I agree there is missing functionality for only part of the URL but that's probably for a separate ticket. I should've been clearer in my opening issue.
From the top bar, if I select part of the URL, it will act as a click-to-copy, but if I press Ctrl+C it will actually copy the part of the URL that I highlighted (such as the AppID on a store page). The default action is a click-to-copy, so the client should be able to tell when a user clicks to copy and when a user is just clicking and holding to highlight. You can also still double-click to highlight part of a URL, and triple-click to highlight the full URL, but this will show the "Copied" bubble on each click.
Recently switched to KDE and wayland and the problem extends into the Help > System Information screen.
Right click copy to clipboard no longer works. If you submit game reports on proton you need that information and it's stuck in that screen now.
There has been a small change in behaviour. Now when I try to paste after doing Right Click -> Copy Page URL, it copies some kind of data to my clipboard but it isn't text data.
However, if I try to paste this URL into Steam, it works correctly. I suspect this may apply to other Xwayland applications, but I don't have any on-hand to test that can take text input.
As of today's release steam has a new look interface and all my copy and paste issues have gone away.
On my machine the behaviour I described in my most recent comment still applies. Some kind of data is copied, but it will crash most programs I try to paste it into, and programs that won't crash just simply act like nothing was on the clipboard.
Copying from the top bar still works fine, though it is no longer possible to only select a portion of that URL, there is no way to click and drag to highlight.
Retesting:
Results:
CTRL+V on Steam: ✔️Right Click > Paste on Steam: ❌CTRL+C: ✔️Right Click > Copy: ❌Right Click on Page > Copy Page URL: ❌So my understanding is that the menus are not working?
Issue #9542 seems to be a duplicate of this.
Testing in steamwebhelper only.
I see that the text is being placed into both the primary selection and the clipboard without requiring use of the menu or of Ctrl-C. I checked using the following shell script:
for i in primary secondary clipboard buffer-cut; do
echo "$i: $(xclip -o -selection "$i")"
done 2>/dev/null
Using the ‘copy’ menu items works fine here. I used xclip to set different text after selecting some text and before using the menu item. Similarly, URL copying works fine.
Quite possible that it's something KDE which is interfering.
(Current Steam beta, time stamp 1692911603. Desktop is Xfce 4.18, and I have xfce4-clipman running.)
Using your script both in X11 and Wayland KDE, copying with the right click menu from Steam.
for i in primary secondary clipboard buffer-cut; do
echo "$i: $(xclip -o -selection "$i")"
done 2>/dev/null
X11:
primary: Recommended
secondary:
clipboard: Recommended
buffer-cut:
Wayland:
primary: Posted: 25 Aug @ 7:28pm
secondary:
clipboard:
buffer-cut:
It seems to be a bug in KDE Wayland.
Desktop is Xfce 4.18, and I have xfce4-clipman running.
You don't seem to be using Wayland. The clipboard works fine in X11. Can you test in a wayland desktop?
I have the samy issue on Hyprland (Wayland WM). Copying doesn't work -- the clipboard gets reset to the empty value if I try to copy anything with Ctrl+C or "Copy" from the context menu.
UPD: Using https://github.com/dnut/clipboard-sync fixed this for me.
For what it's worth, this has been working fine for me for the last while, at least the last few months that I can remember (although probably longer).
@adamant-pwn Maybe clipboard sync is needed because Steam runs via XWayland?
Yes, likely so.
Is https://github.com/ValveSoftware/steam-for-linux/issues/10647 a duplicate of this or is it a separate issue?
I think it's separate. I believe my issue is resolved here and I will close this issue. :-)
Your system information
Please describe your issue in as much detail as possible:
When right clicking on a web view from the Steam client, such as a game store page, and selecting "Copy Page URL", the URL is not actually copied.
However, clicking on the URL along the top will successfully copy the URL to my clipboard. So this bug report is specific to the context menu.
I am using the KDE Plasma Wayland session, unsure if this has any impact.
Steps for reproducing this issue: