Open alexzanderr opened 2 years ago
Hi, maybe too late, but this issue will help (or not help) your problem. https://github.com/alacritty/copypasta/issues/49
thanks for response, i will check it out.
Hey, I just had the same issue but I discovered that set_contents
method does not work without the get_contents
method, it seems like they are interdependent, weird but true. I let you a full working example below...
use clipboard::ClipboardProvider;
use clipboard::ClipboardContext;
fn main() {
let mut ctx: ClipboardContext = ClipboardProvider::new().unwrap();
ctx.set_contents("My name is Pablo".to_owned()).unwrap();
ctx.get_contents();
}
hello.
i have a minimal example.
this should copy to clipboard the string
hello
and then it should be pasteable withcontrol-v
everywhere.actuall result: doesnt do anything (doesnt copy to clipboard), the clipboard is empty.
here is some neofetch:
specs:
what am i missing guys? why it doesnt work?
my
DE
is usingX11
and i saw thismerge
here that it was implemented for x11