Skip to content

Conversation

@daxian-dbw
Copy link
Member

@daxian-dbw daxian-dbw commented Feb 1, 2024

PR Summary

Fix #1993
Fix #3884

Fix copying text to system clipboard on Linux using xclip.
Avoid reading the standard output pipe when it's not needed to do so. So, we redirect but don't read the stdout when setting text to clipboard using xclip, and only read the output when we are getting text from the clipboard.

PR Checklist

  • PR has a meaningful title
    • Use the present tense and imperative mood when describing your changes
  • Summarized changes
  • Make sure you've added one or more new tests only able to test manually
  • Make sure you've tested these changes in terminals that PowerShell is commonly used in (i.e. conhost.exe, Windows Terminal, Visual Studio Code Integrated Terminal, etc.)
  • User-facing changes
    • Not Applicable
    • OR
    • Documentation needed at PowerShell-Docs
      • Doc Issue filed:
Microsoft Reviewers: Open in CodeFlow

Copy link
Member

@andyleejordan andyleejordan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@daxian-dbw daxian-dbw merged commit 826f73e into master Feb 2, 2024
@daxian-dbw daxian-dbw deleted the copy branch February 2, 2024 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Copy, CopyOrCancel and Cut commands hang in Linux until you copy in some other app Copy and cut commands don't work on pwsh on WSL2 Ubuntu

3 participants