hi, I am trying emacs on wsl2, how can I integrate both clipboards? would like to M-w something and C-v on windows apps
Use XServer for that. You can use X410 (paid) or XOrg free server from Cygwin (for example). Cygwin X should be run with the following arguments: Xwin :0 -multiwindow -ac +iglx -wgl -clipboard -listen tcp
Clipboard is passed both ways, ie win->wsl and wsl->win
I am using X410 and the option to share clipboard is enabled.
idk if I need to do something on the ubuntu side (or emacs)
uhm.. I restarted the X410 and emacs and now M-w is hanging 😕
Oh, strange... it works for me well.
even using emacs -Q does not work
maybe Windows firewall is blocking something?
idk, I'm new to windows .. still trying to figure out how to debug this
I don't know how to do this 😕
Just a random reddit post from the past (3y ago): I use Emacs (25.3) with VcXsrv (X Server for Windows) and clipboard sharing works like a charm (but only after latest Creator Update for Windows 10, earlier you had to patch sources of Emacs to prevent it from hanging).
(here: https://www.reddit.com/r/bashonubuntuonwindows/comments/6xx3k5/emacs_functions_for_the_windows_clipboard/)
So maybe you haven't updated Windows to the newest one?
uhm.. there are a couple of updates pending here. let me try. thanks
the bigger updates should be initiated manually by you, they are not automatic anymore.
got it!
@tsulej it worked! thanks for the help
I am being so brave and not cursing windows too much bc of every annoyance. I'll give myself a cookie now =)
that's great! cookie is obligatory now 🙂