Skip to content

Clipboard on windows #14

@edouard-lopez

Description

@edouard-lopez

From PowerShell Slack

chrisdent [13 h 28]
you'll hit a bug in win PS because you're using $IsWindows in your GetSystemCopyCommand function. You could use Set-Clipboard on Windows.
https://github.com/edouard-lopez/lesspass-powershell/blob/master/Clipboard.tests.ps1#L5-L9 I'm pretty sure your test will never fail

$IsWindows exists in PowerShell Core (6+), but not in 5.1 and below. If you want backwards compatibility you'll need to reconsider OS discovery a little.
I plan to use ClipboardText module

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions