Reintroduce win32yank as a clipboard provider on Linux for WSL2 + Windows 10 (#1912)

* feat(clipboard): reintroduce win32yank for wsl2 linux

* refactor(clipboard): adjust win32yank position to not interrupt wayland/x11

Co-authored-by: jiqb <gthbji@ml1.net>
pull/1925/head
جاد 3 years ago committed by GitHub
parent 6bb2298391
commit a9635659f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -104,6 +104,11 @@ pub fn get_clipboard_provider() -> Box<dyn ClipboardProvider> {
primary_paste => "xsel", "-o"; primary_paste => "xsel", "-o";
primary_copy => "xsel", "-i"; primary_copy => "xsel", "-i";
} }
} else if exists("win32yank.exe") {
command_provider! {
paste => "win32yank.exe", "-o", "--lf";
copy => "win32yank.exe", "-i", "--crlf";
}
} else if exists("termux-clipboard-set") && exists("termux-clipboard-get") { } else if exists("termux-clipboard-set") && exists("termux-clipboard-get") {
command_provider! { command_provider! {
paste => "termux-clipboard-get"; paste => "termux-clipboard-get";

Loading…
Cancel
Save