You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I experience issues with wormhole-rs that uses cli_clipboard under the hood. When i try pasting to a third application (Signal Desktop, cutsel) they freeze for some time or fail entirely. I think cli-clipoard is at fault because I never experience freezes when copying from other sources. Pasting to Firefox and Libre Office Writer works for some reasons.
Steps to reproduce:
I implemented a little demo with cli-clipboard = "0.4" to eliminate other factors.
use std::io::prelude::*;use std::io::stdin;use std::io::stdout;use cli_clipboard::{ClipboardContext,ClipboardProvider};fnmain(){letmut ctx = ClipboardContext::new().unwrap();let the_string = "Hello, world!";
ctx.set_contents(the_string.to_owned()).unwrap();// Keep application running until any key is pressed.write!(stdout(),"Press any key to continue...").unwrap();stdout().flush().unwrap();let _ = stdin().read(&mut[0u8]).unwrap();}
With Signal Desktop:
On the demo cargo run
Ctrl+V in Signal Desktop
-> Signal Desktop freezes for a couple of seconds and successfully pasts the text afterwards.
With cutsel
On the demo cargo run
In another terminal cutsel -v -d -s CLIPBOARD sel
-> crashes with the following output
$ cutsel -v -d -s CLIPBOARD sel
cutsel v0.10.1
X Error of failed request: BadAtom (invalid Atom parameter)
Major opcode of failed request: 17 (X_GetAtomName)
Atom id in failed request: 0x80000001
Serial number of failed request: 22
Current serial number in output stream: 22
Other information
I'm running an up-to-date Archlinux with i3-wm. FWI, a couple installed packages that might be of importance.
I experience issues with
wormhole-rs
that usescli_clipboard
under the hood. When i try pasting to a third application (Signal Desktop, cutsel) they freeze for some time or fail entirely. I think cli-clipoard is at fault because I never experience freezes when copying from other sources. Pasting to Firefox and Libre Office Writer works for some reasons.Steps to reproduce:
I implemented a little demo with
cli-clipboard = "0.4"
to eliminate other factors.With Signal Desktop:
cargo run
-> Signal Desktop freezes for a couple of seconds and successfully pasts the text afterwards.
With cutsel
cargo run
cutsel -v -d -s CLIPBOARD sel
-> crashes with the following output
Other information
I'm running an up-to-date Archlinux with i3-wm. FWI, a couple installed packages that might be of importance.
Please let me know if you need any additional information.
The text was updated successfully, but these errors were encountered: