Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "clipboard-sync"
description = " Synchronizes the clipboard across multiple X11 and wayland instances running on the same machine. "
version = "0.2.0"
version = "0.2.1"
edition = "2021"
license = "MIT OR Apache-2.0"

Expand All @@ -11,8 +11,8 @@ backtrace = []
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
wayland-client = "0.29.4"
wl-clipboard-rs = "0.7.0"
wayland-client = "0.31.15"
wl-clipboard-rs = "0.9.3"
cli-clipboard = "0.2.0"
arboard = "2.0.0"
x11-clipboard = "0.5.3"
Expand Down
10 changes: 5 additions & 5 deletions src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ fn get_wayland(n: u8) -> MyResult<Option<Box<dyn Clipboard>>> {
};
let attempt = clipboard.get();
if let Err(MyError::WlcrsPaste(PasteError::WaylandConnection(
ConnectError::NoCompositorListening,
ConnectError::NoCompositor,
))) = attempt
{
return Ok(None);
Expand All @@ -214,10 +214,10 @@ fn get_wayland(n: u8) -> MyResult<Option<Box<dyn Clipboard>>> {
})) = attempt
{
log::warning!(
"{wl_display} does not support zwlr_data_control_manager_v1. If you are running \
gnome in wayland, that's OK because it provides an x11 clipboard, which will be used instead. \
Otherwise, `wl-copy` will be used to sync data *into* this clipboard, but it will not be possible \
to read data *from* this clipboard into other clipboards."
"{wl_display} does not support ext-data-control-v1 or wlr-data-control-unstable-v1. \
If you are running Gnome in Wayland session, that's OK because it provides an x11 clipboard, \
which will be used instead. Otherwise, `wl-copy` will be used to sync data *into* this clipboard, \
but it will not be possible to read data *from* this clipboard into other clipboards."
);
let command = WlCommandClipboard {
display: wl_display.clone(),
Expand Down