Clipboard commands don't work on Linux Wayland #17561
Labels
Hacktoberfest
Potential candidate to participate in Hacktoberfest
Issue-Enhancement
the issue is more of a feature request than a bug
Up-for-Grabs
Up-for-grabs issues are not high priorities, and may be opportunities for external contributors
WG-Cmdlets-Management
cmdlets in the Microsoft.PowerShell.Management module
Prerequisites
Steps to reproduce
When using Wayland on Linux, when I try and use
set-Clipboard
it completes, but when Ictrl + v
it doesn't paste what I copied, it pastes what was in the clipboard already. If I then useget-clipboard
it outputs what I set inset-clipboard
. The reason I believe this is to do with Wayland, is due to the note in theSet-Clipboard
docs, where it says "On Linux, this cmdlet requires thexclip
utility to be in the path.", but if you look atxclip
's README, it says "xclip is a command line utility that is designed to run on any system with an X11 implementation" (emphasis added), and Wayland is different to X11, and therefore it won't be compatible. The solution that other applications have implemented, is to usewl-clipboard
when running in Wayland.Expected behavior
Actual behavior
Error details
No response
Environment data
Visuals
No response
The text was updated successfully, but these errors were encountered: