fix: xsel copy should not freeze the editor

If using --nodetach, xsel would end up continually running in the
foreground, so the command execution would never finish.

Fixes #630
pull/640/head
Blaž Hrastnik 3 years ago
parent 607b92b2e3
commit 6dd7dc4eb2

@ -84,7 +84,7 @@ pub fn get_clipboard_provider() -> Box<dyn ClipboardProvider> {
// FIXME: check performance of is_exit_success // FIXME: check performance of is_exit_success
command_provider! { command_provider! {
paste => "xsel", "-o", "-b"; paste => "xsel", "-o", "-b";
copy => "xsel", "--nodetach", "-i", "-b"; copy => "xsel", "-i", "-b";
primary_paste => "xsel", "-o"; primary_paste => "xsel", "-o";
primary_copy => "xsel", "-i"; primary_copy => "xsel", "-i";
} }

Loading…
Cancel
Save