Skip to content

Get-Clipboard and Set-Clipboard should work on WaylandΒ #24507

Closed
@pascalecu

Description

Summary of the new feature / enhancement

I want Get-Clipboard and Set-Clipboard to work on Wayland without xclip.

Proposed technical implementation details (optional)

Currently, the description for Get-Clipboard says this:

DESCRIPTION
    > This cmdlet is not supported on macOS. The `Get-Clipboard` cmdlet gets the contents of the clipboard as text. Multiple lines of text are returned as an array of strings similar to 
    `Get-Content`.
    
    > [!NOTE] > On Linux, this cmdlet requires the `xclip` utility to be in the path.

A similar thing is with Set-Clipboard.

On Wayland, there's wl-copy and wl-paste which can be used to implement Set-Clipboard and Get-Clipboard respectively.

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions