Closed LGDHuaOPER closed 1 year ago
Hi!
You have to have a Wayland compositor running to use wl-clipboard -- otherwise, where would it copy and paste from? Please see the Microsoft docs about using Wayland on WSL 2.
Also setting XDG_RUNTIME_DIR
to a custom value is not going to help anything. wl-clipboard doesn't store its temporary files there (that'd be in /tmp
), but this directory is the canonical place where libwayland-client looks for a Wayland compositor socket.
I exec that cmd:
But got error:
I have install
sudo apt-get install libwayland-dev
and setexport XDG_RUNTIME_DIR="$HOME/.wl-clipboard/temp"
. Why this?My OS is:
Thanks!