equalsraf / win32yank

Windows clipboard tool
ISC License
441 stars 22 forks source link

Slow "start" (5s) when using it with WSL2 / Ubuntu 2204 #22

Open KervyN opened 4 months ago

KervyN commented 4 months ago

Hi,

I am just trying out this cool tool (thanks a lot for doing this work), and it takes around 5s to do anything with the it.

After some tinkering I found a solution: I've moved it form "somewhere" within the WSL distro to the windows part of the system and if was fast.

I am not sure if this is a me problem, but maybe it helps future people to solve a problem. I've attached a strace of both starts.

strace-fast.log strace-slow.log

Best wishes, and thank you for this awesome tool <3

GWW commented 4 months ago

Thanks for posting this. I was having the same problem where a copy/paste would take a long time. Moving it outside of WSL2 fixed the issue for me as well.

Nargonath commented 2 months ago

When you move win32yank to Windows host, do you need a specific configuration on NeoVim or Windows to use it? I assume you should add it to your PATH on windows (or linux)?

KervyN commented 2 months ago

When you move win32yank to Windows host, do you need a specific configuration on NeoVim or Windows to use it? I assume you should add it to your PATH on windows (or linux)?

I had it in my $PATH for my WSL terminal. But I can't check anymore, because I turned my back on windows.

Nargonath commented 2 months ago

haha alright. No problem.

rickywu commented 1 month ago

yes, move to windows path solved