shlomif / Clipboard

Perl / CPAN extension for copying/pasting to the system's Clipboard (X.org / Windows / Mac)
http://metacpan.org/release/Clipboard
Other
6 stars 3 forks source link

Unable to use clipboard on WSL2 #8

Closed davadev closed 3 years ago

davadev commented 3 years ago

So I installed kpcli on WSL Ubuntu and I am not able to use copy to clipboard.

kpcli:/keepass/Private/Devices/Routers> xp My_entry Error: Can't open display: (null) Error closing ` |xclip -i -selection primary`: at /usr/share/perl5/Clipboard/Xclip.pm line 29.

Apparently this is happening because kpcli fails to transfer the password into windows clipboard. Since it is possible to use windows programs from within WSL perhaps you could add something like

xp My_entry | clip.exe

davadev commented 3 years ago

Sorry this was meant for kpcli...