-
-
Notifications
You must be signed in to change notification settings - Fork 499
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
gopass show can't copy to clipboard from WSL #1664
Comments
Did you try installing `xclip` on your WSL? Does it work with it?
We could give it a try. Since WSL doesn't support hardware PGP tokens, it's
low priority for now, but this might happen next year.
|
Yes, I already have xclip installed. Still doesn't work unfortunately. |
The easiest way for us is to wait until support for WSL is added to |
Yes, I think we need to wait for atotto/clipboard#45 to be resolved. |
Hi! As a workaround I have this little script called #!/bin/bash
cat | clip.exe It works enough to have passwords and otp codes in my windows clipboard. |
That's a nice workaround, indeed. 😄 |
@Hazegard that works great, thanks! |
We might consider switching to https://github.com/golang-design/clipboard which is reported to work with WSL on windows. |
No, that's using CGo. We can not introduce CGo dependencies with our current build system. |
I'm using gopass in an WSL 2 instance (Windows Subsystem for Linux). This works great with one exception: every time I run
gopass generate test
it says:I found that it is possible to copy text to the clipboard with
echo 'test' | clip.exe
(src), but I'd understand if this is too niche to implement in gopass.As an alternative, maybe would be a sane default to just print the generated password if copying to the clipboard fails?
Windows 10 20H2 with WSL2
Ubuntu 20.04.1
gopass 1.9.0
The text was updated successfully, but these errors were encountered: