Closed ghost closed 4 years ago
You need surface around to handle KbdEnter
etc and actually draw in it. Without it it won't work. If your use case is CLI usage, this crate isn't for you and you should look at https://github.com/YaLTeR/wl-clipboard-rs .
Btw, without the WAYLAND_DISPLAY=/run/user/1000/wayland-0 env variable set I'm getting
Your wayland compositor should set WAYLAND_DIPLAY
, so check env | grep WAYLAND_DISPLAY
.
Update:
So, I'd recommend you to start from https://github.com/Smithay/client-toolkit/tree/master/examples . once you drawn your surface and start handling events, etc. you can use clipboard from here.(smithay-clipboard
should start working after KbdEnter
event IIRC).
@kchibisov, I think you're right and https://github.com/YaLTeR/wl-clipboard-rs should be sufficient for me.
Thanks for satisfying answer, I'm closing it.
I'm running this simple code
and getting this
while I'm expecting something like this
Any clue?
Btw, without the
WAYLAND_DISPLAY=/run/user/1000/wayland-0
env variable set I'm getting