lockbox

password manager
Log | Files | Refs | README | LICENSE

commit 7178ffc9eebcfafab7d7904657b98a42b4b597d7
parent 3b935499f11068340a4e168bfdc1685c747f96a8
Author: Sean Enck <sean@ttypty.com>
Date:   Tue, 12 Jul 2022 18:40:32 -0400

clipboard for wsl mode

Diffstat:
Minternal/clip.go | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/internal/clip.go b/internal/clip.go @@ -13,6 +13,7 @@ const ( pbClipMode = "pb" waylandClipMode = "wayland" xClipMode = "x11" + wslMode = "wsl" ) // GetClipboardCommand will retrieve the commands to use for clipboard operations. @@ -47,6 +48,8 @@ func GetClipboardCommand() ([]string, []string, error) { return []string{"xclip"}, []string{"xclip", "-o"}, nil case waylandClipMode: return []string{"wl-copy"}, []string{"wl-paste"}, nil + case wslMode: + return []string{"clip.exe"}, []string{"powershell.exe", "-command", "'Get-Clipboard'"}, nil case "off": return nil, nil, NewLockboxError("clipboard is turned off") }