Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support Windows clipboard on WSL #89

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ahihi
Copy link

@ahihi ahihi commented Dec 7, 2023

adds support for interacting with the Windows clipboard when running Orca in WSL (Windows Subsystem for Linux).

caveats:

  • unfortunately, clip.exe has no way to retrieve the clipboard content. here a powershell command is used instead, which is quite slow.
    • in practice however, at least in Microsoft's Terminal app, pressing ctrl+v invokes a built-in paste function which works fine. ctrl+alt+v will send ctrl+v to the running program, invoking the slow powershell paste in Orca.
  • im not sure if my method of detecting WSL in the build script is ideal
  • i suppose a user might possibly want to run Orca in WSL and still use xclip. this is currently not possible with my code

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.

1 participant