doy / rbw

unofficial bitwarden cli
https://git.tozt.net/rbw
Other
611 stars 84 forks source link

Fix `--clipboard` on Wayland #192

Open Ty3uK opened 1 month ago

Ty3uK commented 1 month ago

According to https://github.com/alacritty/copypasta/issues/71 we cannot use copypasta for Wayland if we're CLI.

Ty3uK commented 1 month ago

A small (or not) downside of this PR is increased size of binaries:

rbw on  fix/clipboard-wayland is 📦 v1.11.1 via 🦀 v1.79.0 
❯ ls -lah ~/Downloads/rbw_1.11.1_linux_amd64\(1\)/{rbw,rbw-agent}
-rwxr-xr-x 1 ty3uk ty3uk 7.3M Jun 26 11:21 '/home/ty3uk/Downloads/rbw_1.11.1_linux_amd64(1)/rbw'
-rwxr-xr-x 1 ty3uk ty3uk 8.1M Jun 26 11:21 '/home/ty3uk/Downloads/rbw_1.11.1_linux_amd64(1)/rbw-agent'
rbw on  fix/clipboard-wayland is 📦 v1.11.1 via 🦀 v1.79.0 
❯ ls -lah target/release/{rbw,rbw-agent}
-rwxr-xr-x 2 ty3uk ty3uk 8.9M Jul  7 23:32 target/release/rbw
-rwxr-xr-x 2 ty3uk ty3uk  11M Jul  7 23:32 target/release/rbw-agent
rbw on  fix/clipboard-wayland is 📦 v1.11.1 via 🦀 v1.79.0 
❯ 
Ty3uK commented 1 month ago

@doy, unfortunately, wl-clipboard-rs is using syn 1 under the hood.

Should I add it to deny.toml bans.skip?